diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-06-20 18:29:22 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-06-20 18:29:22 +0200 |
commit | d13488e90ada61c9a9b3eef6ae017d42029740b5 (patch) | |
tree | 854c541f32126c3c05e6034ab90804786316d760 /src | |
parent | rekonq 0.1.5: UI changes (diff) | |
download | rekonq-d13488e90ada61c9a9b3eef6ae017d42029740b5.tar.xz |
history menu fix
Diffstat (limited to 'src')
-rw-r--r-- | src/modelmenu.cpp | 20 |
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; } |