This commit is contained in:
fourtf 2016-12-30 12:46:03 +01:00
parent bbc1b53c89
commit 42b5de161d
3 changed files with 2 additions and 17 deletions

View file

@ -38,4 +38,4 @@ HEADERS += mainwindow.h \
notebookpage.h \ notebookpage.h \
notebookbutton.h notebookbutton.h
FORMS += mainwindow.ui FORMS +=

View file

@ -1,19 +1,11 @@
#include "mainwindow.h" #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "chatwidget.h" #include "chatwidget.h"
#include "notebook.h" #include "notebook.h"
MainWindow::MainWindow(QWidget *parent) : MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent), QMainWindow(parent),
ui(new Ui::MainWindow),
notebook(this) notebook(this)
{ {
//ui->setupUi(this);
//ChatWidget widget = new ChatWidget(this);
//this->notebook = new Notebook(this);
setCentralWidget(&this->notebook); setCentralWidget(&this->notebook);
this->notebook.addPage(); this->notebook.addPage();
@ -23,5 +15,5 @@ MainWindow::MainWindow(QWidget *parent) :
MainWindow::~MainWindow() MainWindow::~MainWindow()
{ {
delete ui;
} }

View file

@ -4,10 +4,6 @@
#include <QMainWindow> #include <QMainWindow>
#include "notebook.h" #include "notebook.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow class MainWindow : public QMainWindow
{ {
Q_OBJECT Q_OBJECT
@ -16,9 +12,6 @@ public:
explicit MainWindow(QWidget *parent = 0); explicit MainWindow(QWidget *parent = 0);
~MainWindow(); ~MainWindow();
Notebook notebook; Notebook notebook;
private:
Ui::MainWindow *ui;
}; };
#endif // MAINWINDOW_H #endif // MAINWINDOW_H