summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-30 16:11:37 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-30 16:11:37 +0100
commit6ebcdb1aa9e4a2f59cf1dd7e38a39be5d8e1c31b (patch)
tree2264343faf7972ba4c4fefde639b4f092003b125
parentBetter menus, icons.. (diff)
downloadrekonq-6ebcdb1aa9e4a2f59cf1dd7e38a39be5d8e1c31b.tar.xz
Solved history && bookmarks menu problems..
YEAH!!
-rw-r--r--src/mainwindow.cpp18
-rw-r--r--src/rekonqui.rc10
2 files changed, 17 insertions, 11 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 152b2ec7..d3509e60 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -188,17 +188,17 @@ void MainWindow::setupActions()
actionCollection()->addAction( i18n("private browsing"), a );
connect( a, SIGNAL( triggered(bool) ) , this, SLOT( slotPrivateBrowsing() ) );
- a = new KAction( i18n("&Bigger"), this );
+ a = new KAction( KIcon("zoom-in"), i18n("&Enlarge font"), this );
a->setShortcut( QKeySequence(Qt::CTRL | Qt::Key_Plus) );
actionCollection()->addAction( QLatin1String("bigger font"), a );
connect( a, SIGNAL( triggered( bool ) ), this, SLOT( slotViewTextBigger() ) );
- a = new KAction( i18n("&Normal"), this );
+ a = new KAction( KIcon("zoom-original"), i18n("&Normal font"), this );
a->setShortcut( QKeySequence(Qt::CTRL | Qt::Key_0) );
actionCollection()->addAction( QLatin1String("normal font"), a );
connect( a, SIGNAL( triggered( bool ) ), this, SLOT( slotViewTextNormal() ) );
- a = new KAction( i18n("&Smaller"), this );
+ a = new KAction( KIcon("zoom-out"), i18n("&Shrink font"), this );
a->setShortcut( QKeySequence(Qt::CTRL | Qt::Key_Minus) );
actionCollection()->addAction( QLatin1String("smaller font"), a );
connect( a, SIGNAL( triggered( bool ) ), this, SLOT( slotViewTextSmaller() ) );
@@ -216,6 +216,11 @@ void MainWindow::setupActions()
actionCollection()->addAction( QLatin1String("web inspector"), a );
connect( a, SIGNAL( triggered( bool ) ), this, SLOT( slotToggleInspector(bool) ) );
+ a = new KActionMenu( i18n("B&ookmarks"), this );
+ actionCollection()->addAction( QLatin1String("bookmarks"), a );
+ BookmarksMenu *bookmarksMenu = new BookmarksMenu( this );
+ a->setMenu( bookmarksMenu );
+
// ===================================================================================================================
// ===================================================================================================================
// FIXME
@@ -241,7 +246,7 @@ void MainWindow::setupCustomMenu()
connect(historyMenu, SIGNAL(openUrl(const KUrl&)), m_tabWidget, SLOT(loadUrlInCurrentTab(const KUrl&)));
connect(historyMenu, SIGNAL(hovered(const QString&)), this, SLOT(slotUpdateStatusbar(const QString&)));
historyMenu->setTitle( i18n("Hi&story") );
- menuBar()->insertMenu( actionCollection()->action("downloads"), historyMenu);
+ menuBar()->insertMenu( actionCollection()->action("bookmarks"), historyMenu);
QList<QAction*> historyActions;
historyActions.append( actionCollection()->action("Back") );
@@ -253,9 +258,8 @@ void MainWindow::setupCustomMenu()
// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// --------------------------------------------- BOOKMARKS MENU -----------------------------------------------------------------------------------------------------
- BookmarksMenu *bookmarksMenu = new BookmarksMenu( this );
- bookmarksMenu->setTitle( i18n("&Bookmarks") );
- menuBar()->insertMenu( actionCollection()->action("downloads"), bookmarksMenu );
+
+
// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
}
diff --git a/src/rekonqui.rc b/src/rekonqui.rc
index 5c4ef58e..a3502229 100644
--- a/src/rekonqui.rc
+++ b/src/rekonqui.rc
@@ -38,12 +38,12 @@
<Menu name="view" noMerge="1"><text>&amp;View</text>
<Action name="view_redisplay" />
<Separator/>
- <Menu name="fontmenu">
- <text>make text..</text>
+<!-- <Menu name="fontmenu"> -->
+<!-- <text>make text..</text> -->
<Action name="bigger font" />
<Action name="normal font" />
<Action name="smaller font" />
- </Menu>
+<!-- </Menu> -->
<Separator/>
<Action name="page source" />
<Action name="fullscreen" />
@@ -51,6 +51,8 @@
<!-- ============ GO menu =========== -->
<Menu name="go" deleted="true">
</Menu>
+<!-- ============ BOOKMARKS menu =========== -->
+<Action name="bookmarks" />
<!-- ============ TOOLS menu =========== -->
<Menu name="tools">
<Action name="downloads" />
@@ -58,7 +60,7 @@
</Menu>
<!-- ============ SETTINGS menu =========== -->
<Menu name="settings" noMerge="1"><text>&amp;Settings</text>
- <Action name="options_show_statusbar"/>
+ <Action name="options_show_statusbar" />
<Separator/>
<Action name="options_configure_keybinding"/>
<Action name="options_configure_toolbars"/>