Added a method for retrieving a panel context button list
authorPekka Nissinen <pekka.nissinen@ixonos.com>
Thu, 19 Aug 2010 11:13:23 +0000 (14:13 +0300)
committerPekka Nissinen <pekka.nissinen@ixonos.com>
Thu, 19 Aug 2010 11:13:23 +0000 (14:13 +0300)
src/ui/panelbase.cpp
src/ui/panelbase.h

index 9f9ef3a..1eb2175 100644 (file)
@@ -28,3 +28,10 @@ PanelBase::PanelBase(QWidget *parent)
 {
     qDebug() << __PRETTY_FUNCTION__;
 }
+
+const QList<ImageButton *>& PanelBase::contextButtons() const
+{
+    qDebug() << __PRETTY_FUNCTION__;
+
+    return m_contextButtonList;
+}
index 086aaf1..528dc29 100644 (file)
@@ -44,6 +44,17 @@ public:
     PanelBase(QWidget *parent = 0);
 
 /*******************************************************************************
+ * MEMBER FUNCTIONS AND SLOTS
+ ******************************************************************************/
+public:
+    /**
+     * @brief Get list of context buttons
+     *
+     * @returns Reference to list of context buttons
+     */
+    const QList<ImageButton *>& contextButtons() const;
+
+/*******************************************************************************
  * SIGNALS
  ******************************************************************************/
 signals:
@@ -58,6 +69,6 @@ signals:
  * DATA MEMBERS
  ******************************************************************************/
 protected:
-    QList<ImageButton *> m_contextButtonList;
+    QList<ImageButton *> m_contextButtonList; ///< List of context buttons
 };
 #endif // PANELBASE_H