summaryrefslogtreecommitdiff
path: root/src/modelmenu.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-06-20 18:34:25 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-06-20 18:34:25 +0200
commit4a023c89a83322cebb3a878c9512874772f791b9 (patch)
tree069afc4e9bd6c1f96852b3940d749668e6c3c1b4 /src/modelmenu.cpp
parenthistory menu fix (diff)
downloadrekonq-4a023c89a83322cebb3a878c9512874772f791b9.tar.xz
New history menu code comments
Diffstat (limited to 'src/modelmenu.cpp')
-rw-r--r--src/modelmenu.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/modelmenu.cpp b/src/modelmenu.cpp
index 282256a8..41c197f3 100644
--- a/src/modelmenu.cpp
+++ b/src/modelmenu.cpp
@@ -145,6 +145,10 @@ void ModelMenu::aboutToShow()
postPopulated();
}
+
+// WARNING
+// the code commented out here is to create a second separator in the history menu
+// with ALL history, subdivided by days.
void ModelMenu::createMenu(const QModelIndex &parent, int max, QMenu *parentMenu, QMenu *menu)
{
Q_UNUSED(parentMenu)
@@ -173,12 +177,12 @@ void ModelMenu::createMenu(const QModelIndex &parent, int max, QMenu *parentMenu
for (int i = 0; i < end; ++i)
{
QModelIndex idx = m_model->index(i, 0, parent);
-/* if (m_model->hasChildren(idx))
- {
- createMenu(idx, -1, menu);
- }
- else
- {*/
+// if (m_model->hasChildren(idx))
+// {
+// createMenu(idx, -1, menu);
+// }
+// else
+// {
if (m_separatorRole != 0
&& idx.data(m_separatorRole).toBool())
addSeparator();