From: Pekka Nissinen Date: Thu, 19 Aug 2010 11:13:23 +0000 (+0300) Subject: Added a method for retrieving a panel context button list X-Git-Tag: v2.0b-1~52 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=65c3cce52f80fad9fef0329d67b31ac197f883db;p=situare Added a method for retrieving a panel context button list --- diff --git a/src/ui/panelbase.cpp b/src/ui/panelbase.cpp index 9f9ef3a..1eb2175 100644 --- a/src/ui/panelbase.cpp +++ b/src/ui/panelbase.cpp @@ -28,3 +28,10 @@ PanelBase::PanelBase(QWidget *parent) { qDebug() << __PRETTY_FUNCTION__; } + +const QList& PanelBase::contextButtons() const +{ + qDebug() << __PRETTY_FUNCTION__; + + return m_contextButtonList; +} diff --git a/src/ui/panelbase.h b/src/ui/panelbase.h index 086aaf1..528dc29 100644 --- a/src/ui/panelbase.h +++ b/src/ui/panelbase.h @@ -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& contextButtons() const; + +/******************************************************************************* * SIGNALS ******************************************************************************/ signals: @@ -58,6 +69,6 @@ signals: * DATA MEMBERS ******************************************************************************/ protected: - QList m_contextButtonList; + QList m_contextButtonList; ///< List of context buttons }; #endif // PANELBASE_H