summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp6
-rw-r--r--src/application.h2
-rw-r--r--src/tabwindow/tabwindow.cpp2
-rw-r--r--src/webwindow/webwindow.cpp53
4 files changed, 14 insertions, 49 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 6de3eea1..da87063d 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -720,3 +720,9 @@ void Application::bookmarksToolbarToggled(bool b)
{
emit toggleBookmarksToolbar(b);
}
+
+
+void Application::newTab()
+{
+ tabWindow()->newCleanTab();
+}
diff --git a/src/application.h b/src/application.h
index e811f3f0..240963ef 100644
--- a/src/application.h
+++ b/src/application.h
@@ -107,6 +107,8 @@ private Q_SLOTS:
void createWebAppShortcut();
+ void newTab();
+
private:
TabWindowList m_tabWindows;
};
diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp
index 297653e8..a971080e 100644
--- a/src/tabwindow/tabwindow.cpp
+++ b/src/tabwindow/tabwindow.cpp
@@ -193,7 +193,7 @@ void TabWindow::loadUrl(const KUrl &url, Rekonq::OpenType type, TabHistory *hist
void TabWindow::newCleanTab()
{
QUrl u = QUrl::fromUserInput("/DATI/WEBPAGES/HomePage/index.htm");
- loadUrl(u, Rekonq::NewTab);
+ loadUrl(u, Rekonq::NewFocusedTab);
}
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp
index fe150504..9e276271 100644
--- a/src/webwindow/webwindow.cpp
+++ b/src/webwindow/webwindow.cpp
@@ -292,54 +292,11 @@ void WebWindow::setupActions()
actionCollection()->addAction(QL1S("sync"), a);
connect(a, SIGNAL(triggered(bool)), SyncManager::self(), SLOT(showSettings()));
-// <Menu name="rekonqMenu" noMerge="1">
-// <Action name="new_tab" /> ---
-// <Action name="new_window" /> +
-// <Action name="private_browsing" /> +
-// <Separator/>
-// <Action name="file_open" /> +
-// <Action name="file_save_as" /> +
-// <Action name="file_print" /> +
-// <Action name="edit_find" />
-// <Action name="view_zoom" />
-// <Separator/>
-//
-// <Menu name="toolsMenu" icon="preferences-other" noMerge="1">
-// <text>&amp;Tools</text>
-// <Action name="clear_private_data" /> +
-// <Separator/>
-// <Action name="webapp_shortcut" /> +
-// <Action name="web_inspector" /> ---------
-// <Action name="page_source" /> +
-// <Action name="net_analyzer" /> xxxxxxxxxxx
-// <Action name="set_editable" /> +
-// <Separator/>
-// <Action name="useragent" /> +
-// <Action name="sync" /> +
-// <Action name="adblock" /> +
-// </Menu>
-//
-// <Separator/>
-// <Action name="show_bookmarks_toolbar" />
-// <Action name="fullscreen" /> +
-// <Separator/>
-//
-// <Menu name="help" icon="help-browser">
-// <text>&amp;Help</text>
-// <Action name="help_contents"/>
-// <Action name="help_whats_this"/>
-// <Separator weakSeparator="1"/>
-// <Action name="help_report_bug"/>
-// <Separator weakSeparator="1"/>
-// <Action name="switch_application_language"/>
-// <Separator weakSeparator="1"/>
-// <Action name="help_about_app"/>
-// <Action name="help_about_kde"/>
-// </Menu>
-//
-// <Action name="options_configure" /> +
-// </Menu>
-
+ // ============================== General Tab Actions ====================================
+ a = new KAction(KIcon("tab-new"), i18n("New &Tab"), this);
+ a->setShortcut(KShortcut(Qt::CTRL + Qt::Key_T));
+ actionCollection()->addAction(QL1S("new_tab"), a);
+ connect(a, SIGNAL(triggered(bool)), rApp, SLOT(newTab()));
}