Simplified panel structure yet again by merging PanelBase class into PanelContentStac...
[situare] / src / ui / panelcontentstack.h
index 9715035..e8515a8 100644 (file)
 
 #include <QStackedWidget>
 
-class QVBoxLayout;
-
-class PanelBase;
-
 /**
  * @brief Stack class for tabbed pabel widgets
  *
@@ -48,6 +44,17 @@ public:
     PanelContentStack(QWidget *parent = 0);
 
 /*******************************************************************************
+ * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
+ ******************************************************************************/
+protected:
+    /**
+     * @brief Draws the panel content base
+     *
+     * @param event Paint event
+     */
+    void paintEvent(QPaintEvent *event);
+
+/*******************************************************************************
  * MEMBER FUNCTIONS AND SLOTS
  ******************************************************************************/
 public slots:
@@ -62,9 +69,7 @@ public slots:
  * DATA MEMBERS
  *******************************************************************************/
 private:
-    QVBoxLayout *m_panelVBox;   ///< Vertical layout inside the panel
-
-    PanelBase *m_panelBase;     ///< Widget for panel base
+    QPixmap m_menuDropShadowTile;   ///< Pixmap for menu drop shadow
 };
 
 #endif // PANELCONTENTSTACK_H