Changeset View
Changeset View
Standalone View
Standalone View
src/scopes/abstractscopewidget.h
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | |||||
61 | 61 | | |||
62 | public: | 62 | public: | ||
63 | /** | 63 | /** | ||
64 | \param trackMouse enables mouse tracking; The variables m_mousePos and m_mouseWithinWidget will be set | 64 | \param trackMouse enables mouse tracking; The variables m_mousePos and m_mouseWithinWidget will be set | ||
65 | if mouse tracking is enabled. | 65 | if mouse tracking is enabled. | ||
66 | \see signalMousePositionChanged(): Emitted when mouse tracking is enabled | 66 | \see signalMousePositionChanged(): Emitted when mouse tracking is enabled | ||
67 | */ | 67 | */ | ||
68 | explicit AbstractScopeWidget(bool trackMouse = false, QWidget *parent = nullptr); | 68 | explicit AbstractScopeWidget(bool trackMouse = false, QWidget *parent = nullptr); | ||
69 | virtual ~AbstractScopeWidget(); // Must be virtual because of inheritance, to avoid memory leaks | 69 | ~AbstractScopeWidget() override; // Must be virtual because of inheritance, to avoid memory leaks | ||
70 | 70 | | |||
71 | enum RescaleDirection { North, Northeast, East, Southeast }; | 71 | enum RescaleDirection { North, Northeast, East, Southeast }; | ||
72 | 72 | | |||
73 | QPalette m_scopePalette; | 73 | QPalette m_scopePalette; | ||
74 | 74 | | |||
75 | /** Initializes widget settings (reads configuration). | 75 | /** Initializes widget settings (reads configuration). | ||
76 | Has to be called in the implementing object. */ | 76 | Has to be called in the implementing object. */ | ||
77 | virtual void init(); | 77 | virtual void init(); | ||
▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines |