From 639855d1e8ef84c5b84187893b38ef92773194f7 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 14 May 2009 12:25:45 +0200 Subject: Fixed non working SidePanel toogle view action --- src/mainwindow.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src') 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())); } -- cgit v1.2.1