added settings for modifying tabs

This commit is contained in:
fourtf
2017-02-02 02:46:33 +01:00
parent 43cf7620ae
commit 5390272279
8 changed files with 59 additions and 28 deletions
+11 -8
View File
@@ -4,6 +4,8 @@
#include <QPropertyAnimation>
#include <QWidget>
#include <boost/property_tree/ptree.hpp>
#include <boost/signals2.hpp>
#include <boost/signals2/connection.hpp>
namespace chatterino {
namespace widgets {
@@ -76,6 +78,13 @@ public:
return QRect(posAnimationDesired, this->size());
}
void
hideTabXChanged(bool)
{
calcSize();
update();
}
protected:
void paintEvent(QPaintEvent *) override;
@@ -89,6 +98,8 @@ protected:
void mouseMoveEvent(QMouseEvent *event) override;
private:
boost::signals2::connection hideXConnection;
QPropertyAnimation posAnimation;
bool posAnimated;
QPoint posAnimationDesired;
@@ -111,14 +122,6 @@ private:
return QRect(this->width() - 20, 4, 16, 16);
}
private slots:
void
hideTabXChanged(bool)
{
calcSize();
update();
}
public:
void load(const boost::property_tree::ptree &tree);
boost::property_tree::ptree save();