setCheckable(true);
}
+IndicatorButton::~IndicatorButton()
+{
+ qDebug() << __PRETTY_FUNCTION__;
+
+ delete m_normalColor;
+ delete m_selectedGradient;
+
+}
+
void IndicatorButton::mousePressEvent(QMouseEvent *event)
{
qDebug() << __PRETTY_FUNCTION__;
*/
IndicatorButton(QWidget *parent = 0);
+ /**
+ * @brief Desctructor
+ *
+ */
+ ~IndicatorButton();
+
/*******************************************************************************
* BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
******************************************************************************/
bool m_isDraggable; ///< Boolean for tracking the draggability state
+ QColor *m_normalColor; ///< Normal background color
+
+ QLinearGradient *m_selectedGradient; ///< Selected background
+
+ QPainterPath m_backgroundPath; ///< Item shape path
+
+ QPixmap m_indicatorLeds[2]; ///< Placeholder for images
+
QPoint m_dragPosition; ///< Location from where the widget is grabbed
QPoint m_eventPosition; ///< Position of mousePressEvent
QSize m_screenSize; ///< Store for the screen size
QTimer *m_dragStartTimer; ///< Timer to init draggability of the distance indicator button
- QTimer *m_forceReleaseTimer; ///< Timer to run forceMouseRelease;
-
- QColor *m_normalColor;
- QLinearGradient *m_selectedGradient;
- QPainterPath m_backgroundPath;
- QPixmap m_indicatorLeds[2];
+ QTimer *m_forceReleaseTimer; ///< Timer to run forceMouseRelease
};