added custom window frame to the emote popup

This commit is contained in:
fourtf
2018-04-18 17:51:53 +02:00
parent 4743e9f86c
commit e8a948cffc
3 changed files with 17 additions and 9 deletions
+6 -1
View File
@@ -36,11 +36,16 @@ Notebook2::Notebook2(QWidget *parent)
QObject::connect(shortcut_prev, &QShortcut::activated, [this] { this->selectPreviousTab(); });
}
NotebookTab2 *Notebook2::addPage(QWidget *page, bool select)
NotebookTab2 *Notebook2::addPage(QWidget *page, QString title, bool select)
{
auto *tab = new NotebookTab2(this);
tab->page = page;
if (!title.isEmpty()) {
tab->setTitle(title);
tab->useDefaultTitle = false;
}
Item item;
item.page = page;
item.tab = tab;