mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
asd
This commit is contained in:
parent
1d7eb937f4
commit
936aeda484
11
notebook.cpp
11
notebook.cpp
|
@ -5,11 +5,18 @@
|
|||
Notebook::Notebook(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
auto list = new QList<std::tuple<NotebookPage*, NotebookTab*>>();
|
||||
|
||||
this->pages = list;
|
||||
}
|
||||
|
||||
NotebookPage
|
||||
NotebookPage*
|
||||
Notebook::AddPage()
|
||||
{
|
||||
return new NotebookPage(this);
|
||||
auto page = new NotebookPage(this);
|
||||
auto tab = new NotebookTab(this, this, page);
|
||||
|
||||
this->pages->append(std::make_tuple(page, tab));
|
||||
|
||||
return page;
|
||||
}
|
||||
|
|
|
@ -13,10 +13,10 @@ Q_OBJECT
|
|||
public:
|
||||
Notebook(QWidget *parent);
|
||||
|
||||
NotebookPage AddPage();
|
||||
NotebookPage* AddPage();
|
||||
|
||||
private:
|
||||
QList<std::tuple<NotebookPage, NotebookTab>> pages;
|
||||
QList<std::tuple<NotebookPage*, NotebookTab*>>* pages;
|
||||
};
|
||||
|
||||
#endif // NOTEBOOK_H
|
||||
|
|
Loading…
Reference in a new issue