summaryrefslogtreecommitdiff
path: root/src/modelmenu.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-06-20 18:29:22 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-06-20 18:29:22 +0200
commitd13488e90ada61c9a9b3eef6ae017d42029740b5 (patch)
tree854c541f32126c3c05e6034ab90804786316d760 /src/modelmenu.cpp
parentrekonq 0.1.5: UI changes (diff)
downloadrekonq-d13488e90ada61c9a9b3eef6ae017d42029740b5.tar.xz
history menu fix
Diffstat (limited to 'src/modelmenu.cpp')
-rw-r--r--src/modelmenu.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/modelmenu.cpp b/src/modelmenu.cpp
index 8f174797..282256a8 100644
--- a/src/modelmenu.cpp
+++ b/src/modelmenu.cpp
@@ -147,17 +147,19 @@ void ModelMenu::aboutToShow()
void ModelMenu::createMenu(const QModelIndex &parent, int max, QMenu *parentMenu, QMenu *menu)
{
+ Q_UNUSED(parentMenu)
+
if (!menu)
{
- QString title = parent.data().toString();
- menu = new QMenu(title, this);
- QIcon icon = qvariant_cast<QIcon>(parent.data(Qt::DecorationRole));
- menu->setIcon(icon);
- parentMenu->addMenu(menu);
- QVariant v;
- v.setValue(parent);
- menu->menuAction()->setData(v);
- connect(menu, SIGNAL(aboutToShow()), this, SLOT(aboutToShow()));
+// QString title = parent.data().toString();
+// menu = new QMenu(title, this);
+// QIcon icon = qvariant_cast<QIcon>(parent.data(Qt::DecorationRole));
+// menu->setIcon(icon);
+// parentMenu->addMenu(menu);
+// QVariant v;
+// v.setValue(parent);
+// menu->menuAction()->setData(v);
+// connect(menu, SIGNAL(aboutToShow()), this, SLOT(aboutToShow()));
return;
}