ui: Added style for graph zoom buttons

* moved zoom buttons to QtGraphicsView due to stylesheet and repositioning on resize
This commit is contained in:
Eberhard Graether
2017-01-30 16:28:32 +01:00
parent 85be119e7f
commit 00cba732df
7 changed files with 87 additions and 54 deletions
-13
View File
@@ -6,8 +6,6 @@
#include <QGraphicsView>
#include <QPointF>
#include <QPushButton>
#include "component/view/GraphView.h"
#include "qt/utility/QtScrollSpeedChangeListener.h"
#include "qt/utility/QtThreadedFunctor.h"
@@ -55,9 +53,6 @@ private slots:
void finishedTransition();
void clickedInEmptySpace();
void zoomInPressed();
void zoomOutPressed();
private:
void switchToNewGraphData();
@@ -75,8 +70,6 @@ private:
void doFocusIn(const std::vector<Id>& tokenIds);
void doFocusOut(const std::vector<Id>& tokenIds);
void zoom(const float delta);
std::shared_ptr<QtGraphNode> findNodeRecursive(const std::list<std::shared_ptr<QtGraphNode>>& nodes, Id tokenId);
std::shared_ptr<QtGraphNode> createNodeRecursive(
@@ -125,12 +118,6 @@ private:
QtScrollSpeedChangeListener m_scrollSpeedChangeListenerHorizontal;
QtScrollSpeedChangeListener m_scrollSpeedChangeListenerVertical;
QPushButton* m_zoomInButton;
QPushButton* m_zoomOutButton;
float m_zoomInButtonSpeed;
float m_zoomOutButtonSpeed;
};
#endif // QT_GRAPH_VIEW_H