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 \
notebookbutton.h
FORMS += mainwindow.ui
FORMS +=

View file

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

View file

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