summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-05-14 12:25:45 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-05-14 12:25:45 +0200
commit639855d1e8ef84c5b84187893b38ef92773194f7 (patch)
tree3b237032c892ded4e276b572c041144cbf81a9f2
parentFixed FullScreen Action & provided it in contextual menu, in fullscreen mode (diff)
downloadrekonq-639855d1e8ef84c5b84187893b38ef92773194f7.tar.xz
Fixed non working SidePanel toogle view action
-rw-r--r--TODO2
-rw-r--r--src/mainwindow.cpp10
2 files changed, 3 insertions, 9 deletions
diff --git a/TODO b/TODO
index 5b1a08da..9695b2fa 100644
--- a/TODO
+++ b/TODO
@@ -27,4 +27,4 @@ TO 0.1 release
- history side panel
- status bar
- menu bar
-- fullscreen action in webView \ No newline at end of file
++ fullscreen action in webView \ No newline at end of file
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 3311dfa8..930a4e64 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -336,15 +336,9 @@ void MainWindow::setupSidePanel()
addDockWidget(Qt::LeftDockWidgetArea, m_sidePanel);
// setup side panel actions
- KAction* a = new KAction(this);
- a->setText(i18n("History"));
- a->setCheckable(true);
- a->setChecked(ReKonfig::showSideBar());
- a->setShortcut(KShortcut(Qt::CTRL + Qt::Key_H));
+ QAction* a = m_sidePanel->toggleViewAction();
+ a->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_H));
actionCollection()->addAction(QLatin1String("show_history_panel"), a);
-
- // connect to toogle action
- connect(a, SIGNAL(triggered(bool)), m_sidePanel->toggleViewAction(), SLOT(trigger()));
}