Changed the way how the context buttons are implemented and how they are forwadded...
[situare] / src / ui / panelbase.h
index 528dc29..272b8df 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef PANELBASE_H
 #define PANELBASE_H
 
+#include <QGridLayout>
 #include <QWidget>
 
 class ImageButton;
@@ -48,11 +49,11 @@ public:
  ******************************************************************************/
 public:
     /**
-     * @brief Get list of context buttons
+     * @brief Getter for the context buttons
      *
-     * @returns Reference to list of context buttons
+     * @returns Pointer to context buttons widget
      */
-    const QList<ImageButton *>& contextButtons() const;
+    QWidget* contextButtons() const;
 
 /*******************************************************************************
  * SIGNALS
@@ -69,6 +70,9 @@ signals:
  * DATA MEMBERS
  ******************************************************************************/
 protected:
-    QList<ImageButton *> m_contextButtonList; ///< List of context buttons
+    QGridLayout *m_contextButtonLayout; ///< Layout for context buttons
+
+private:
+    QWidget *m_contextButtons;          ///< Widget for context buttons
 };
 #endif // PANELBASE_H