summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-11-14 17:16:08 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-12-12 16:40:28 +0100
commit7932ee0fd2e683af8cc1207986504747ccfbc68e (patch)
treec66446b807778be74401bfb649a1b3784379bcf5 /src/mainwindow.cpp
parentSync feature, first bits (diff)
downloadrekonq-7932ee0fd2e683af8cc1207986504747ccfbc68e.tar.xz
Let the "big sync" work (the one done every minute...)
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 92c786df..c46fbc68 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -49,6 +49,7 @@
#include "sessionmanager.h"
#include "settingsdialog.h"
#include "stackedurlbar.h"
+#include "syncmanager.h"
#include "tabbar.h"
#include "urlbar.h"
#include "webinspectorpanel.h"
@@ -447,8 +448,8 @@ void MainWindow::setupActions()
closedTabsMenu->setDelayed(false);
actionCollection()->addAction(QL1S("closed_tab_menu"), closedTabsMenu);
- QSignalMapper *tabSignalMapper = new QSignalMapper(this);
// shortcuts for quickly switching to a tab
+ QSignalMapper *tabSignalMapper = new QSignalMapper(this);
for (int i = 1; i <= 9; i++)
{
a = new KAction(i18n("Switch to Tab %1", i), this);
@@ -529,6 +530,11 @@ void MainWindow::setupActions()
a = new KAction(KIcon("applications-internet"), i18n("Create application shortcut"), this);
actionCollection()->addAction(QL1S("webapp_shortcut"), a);
connect(a, SIGNAL(triggered(bool)), rApp, SLOT(createWebAppShortcut()));
+
+ // Sync action
+ a = new KAction(KIcon("tools-wizard"), i18n("Sync"), this); // FIXME sync icon!!
+ actionCollection()->addAction(QL1S("sync"), a);
+ connect(a, SIGNAL(triggered(bool)), rApp->syncManager(), SLOT(showSettings()));
}