diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-09-02 17:15:20 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-09-02 17:15:20 +0200 |
commit | 6af2fc9af52731ac3630c9019c0bfebd877666b9 (patch) | |
tree | 4bac4a651bd6bbd612f1e2174a193d8920d75913 /src/urlpanel.h | |
parent | Merge commit 'refs/merge-requests/196' of git://gitorious.org/rekonq/mainline... (diff) | |
download | rekonq-6af2fc9af52731ac3630c9019c0bfebd877666b9.tar.xz |
Code Review.
General clean up
let member variables have better names, starting with _ and the needed get functions
signals/slots --> Q_SIGNALS/Q_SLOTS
moc headers
Diffstat (limited to 'src/urlpanel.h')
-rw-r--r-- | src/urlpanel.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/urlpanel.h b/src/urlpanel.h index b4ca2aa5..2bf1c3fe 100644 --- a/src/urlpanel.h +++ b/src/urlpanel.h @@ -49,26 +49,26 @@ public: explicit UrlPanel(const QString &title, QWidget *parent = 0, Qt::WindowFlags flags = 0); virtual ~UrlPanel(); -public slots: + inline PanelTreeView *panelTreeView() const { return _treeView; }; + +public Q_SLOTS: void showing(bool); -signals: - void openUrl(const KUrl &, const Rekonq::OpenType &); - void itemHovered(const QString &); - -protected slots: +protected Q_SLOTS: virtual void contextMenuItem(const QPoint &pos) = 0; virtual void contextMenuGroup(const QPoint &pos) = 0; virtual void contextMenuEmpty(const QPoint &pos) = 0; protected: virtual void setup(); - virtual QAbstractItemModel* getModel() = 0; - PanelTreeView *m_treeView; +Q_SIGNALS: + void openUrl(const KUrl &, const Rekonq::OpenType &); + void itemHovered(const QString &); private: + PanelTreeView *_treeView; bool _loaded; }; |