Added destructor in indicator button panel and modified functional tests
authorKatri Kaikkonen <katri.kaikkonen@ixonos.com>
Mon, 16 Aug 2010 09:59:56 +0000 (12:59 +0300)
committerKatri Kaikkonen <katri.kaikkonen@ixonos.com>
Mon, 16 Aug 2010 09:59:56 +0000 (12:59 +0300)
Reviewed by Jussi Laitinen and Sami Rämö

doc/testing/functionality-tests.doc
src/ui/indicatorbuttonpanel.cpp
src/ui/indicatorbuttonpanel.h

index 5799763..1a5b902 100644 (file)
Binary files a/doc/testing/functionality-tests.doc and b/doc/testing/functionality-tests.doc differ
index d3a921f..39bef4e 100644 (file)
@@ -109,6 +109,13 @@ IndicatorButtonPanel::IndicatorButtonPanel(QWidget *parent)
             this, SIGNAL(autoCenteringTriggered(bool)));
 }
 
+IndicatorButtonPanel::~IndicatorButtonPanel()
+{
+    qDebug() << __PRETTY_FUNCTION__;
+
+    delete m_normalColor;
+}
+
 void IndicatorButtonPanel::forceMouseRelease()
 {
     qDebug() << __PRETTY_FUNCTION__;
index 3dcaecf..2fc9f9f 100644 (file)
@@ -52,6 +52,12 @@ public:
      */
     IndicatorButtonPanel(QWidget *parent = 0);
 
+    /**
+     * @brief Desctructor
+     * Destroys m_normalColor
+     */
+    ~IndicatorButtonPanel();
+
 /*******************************************************************************
  * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
  ******************************************************************************/