show settings and user button when it's not available in the window

frame
This commit is contained in:
fourtf
2018-05-23 12:24:18 +02:00
parent 8b3fb691a7
commit 67e580059c
2 changed files with 45 additions and 4 deletions
+3 -1
View File
@@ -53,6 +53,7 @@ protected:
virtual void paintEvent(QPaintEvent *) override;
NotebookButton *getAddButton();
NotebookButton *addCustomButton();
private:
struct Item {
@@ -64,6 +65,7 @@ private:
QWidget *selectedPage = nullptr;
NotebookButton addButton;
std::vector<NotebookButton *> customButtons;
bool allowUserTabManagement = false;
bool showAddButton = false;
@@ -75,7 +77,7 @@ private:
class SplitNotebook : public Notebook
{
public:
SplitNotebook(QWidget *parent);
SplitNotebook(Window *parent);
SplitContainer *addPage(bool select = false);
SplitContainer *getOrAddSelectedPage();