diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2008-11-30 17:30:57 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2008-11-30 17:30:57 +0100 |
commit | d62176f7f2a6a204b5017bc661fff2d3a9f76e6e (patch) | |
tree | baf13e65cc1cf88fc03e5ead6649b49527c6d9f1 /src/modelmenu.h | |
parent | Fixing ToolBar, some icons and code.. (diff) | |
download | rekonq-d62176f7f2a6a204b5017bc661fff2d3a9f76e6e.tar.xz |
- Ported historyMenu to KAction
- some adjs on urlbar
- added TODO file to remember things
Diffstat (limited to 'src/modelmenu.h')
-rw-r--r-- | src/modelmenu.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/modelmenu.h b/src/modelmenu.h index d539d6bf..61ec370b 100644 --- a/src/modelmenu.h +++ b/src/modelmenu.h @@ -22,8 +22,13 @@ #ifndef MODELMENU_H #define MODELMENU_H -#include <QtGui/QMenu> -#include <QtCore/QAbstractItemModel> +// Qt Includes +#include <QtGui> +#include <QtCore> + +// KDE Includes +#include <KIcon> +#include <KAction> // A QMenu that is dynamically populated from a QAbstractItemModel class ModelMenu : public QMenu @@ -55,7 +60,7 @@ public: void setSeparatorRole(int role); int separatorRole() const; - QAction *makeAction(const QIcon &icon, const QString &text, QObject *parent); + KAction *makeAction(const KIcon &icon, const QString &text, QObject *parent); protected: // add any actions before the tree, return true if any actions are added. @@ -71,7 +76,7 @@ private slots: void hovered(QAction *action); private: - QAction *makeAction(const QModelIndex &index); + KAction *makeAction(const QModelIndex &index); int m_maxRows; int m_firstSeparator; int m_maxWidth; |