ui: made icon buttons self updating on color scheme change

* fixed hatching not replaced in single file view title bar on color scheme change
This commit is contained in:
Eberhard Graether
2018-03-19 22:44:45 +01:00
parent 66ac70850b
commit 166d82b44f
41 changed files with 386 additions and 505 deletions
+4 -5
View File
@@ -4,13 +4,14 @@
#include <memory>
#include <QGraphicsView>
#include <QPushButton>
#include "utility/types.h"
class QPushButton;
class QTimer;
class QtGraphEdge;
class QtGraphNode;
class QtSelfRefreshIconButton;
class QtGraphicsView
: public QGraphicsView
@@ -32,8 +33,6 @@ public:
void updateZoom(float delta);
void refreshStyle();
protected:
void resizeEvent(QResizeEvent* event);
@@ -100,8 +99,8 @@ private:
QAction* m_bookmarkNodeAction;
QPushButton* m_zoomState;
QPushButton* m_zoomInButton;
QPushButton* m_zoomOutButton;
QtSelfRefreshIconButton* m_zoomInButton;
QtSelfRefreshIconButton* m_zoomOutButton;
float m_zoomInButtonSpeed;
float m_zoomOutButtonSpeed;