From d62176f7f2a6a204b5017bc661fff2d3a9f76e6e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 30 Nov 2008 17:30:57 +0100 Subject: - Ported historyMenu to KAction - some adjs on urlbar - added TODO file to remember things --- src/modelmenu.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/modelmenu.h') 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 -#include +// Qt Includes +#include +#include + +// KDE Includes +#include +#include // 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; -- cgit v1.2.1