Implement tab renaming/default tab name

Fix #13
This commit is contained in:
Rasmus Karlsson
2017-08-13 16:52:16 +02:00
parent f4df262179
commit a4533ae92c
4 changed files with 95 additions and 4 deletions
+8 -1
View File
@@ -2,6 +2,7 @@
#include "widgets/basewidget.hpp"
#include <QMenu>
#include <QPropertyAnimation>
#include <boost/property_tree/ptree.hpp>
#include <boost/signals2.hpp>
@@ -64,8 +65,12 @@ private:
Notebook *notebook;
QString title = "<no title>";
QString title;
public:
bool useDefaultBehaviour = true;
private:
bool selected = false;
bool mouseOver = false;
bool mouseDown = false;
@@ -74,6 +79,8 @@ private:
HighlightStyle highlightStyle = HighlightStyle::HighlightNone;
QMenu menu;
QRect getXRect()
{
return QRect(this->width() - 20, 4, 16, 16);