diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-12-15 03:29:48 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-12-16 00:59:32 +0100 |
commit | aa9521b0e0f810a9ba94d7f6c7f9100c3f69d862 (patch) | |
tree | 57dd9649ba0b69f1fa385416c9af9d78587f2de9 /src/mainview.cpp | |
parent | fix spacing (diff) | |
download | rekonq-aa9521b0e0f810a9ba94d7f6c7f9100c3f69d862.tar.xz |
First form of protocol handling
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 9f5b433e..713c171b 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -51,15 +51,15 @@ #include <KLocalizedString> // Qt Includes -#include <QtCore/QTimer> -#include <QtCore/QString> +#include <QTimer> +#include <QString> +#include <QAction> +#include <QIcon> +#include <QLabel> +#include <QMovie> +#include <QWidget> +#include <QVBoxLayout> -#include <QtGui/QAction> -#include <QtGui/QIcon> -#include <QtGui/QLabel> -#include <QtGui/QMovie> -#include <QtGui/QWidget> -#include <QtGui/QVBoxLayout> MainView::MainView(MainWindow *parent) : KTabWidget(parent) @@ -351,18 +351,18 @@ WebTab *MainView::newWebTab(bool focused, bool nearParent) void MainView::newTab() { - WebTab *w = newWebTab(); + WebView *w = newWebTab()->view(); switch(ReKonfig::newTabsBehaviour()) { case 0: // new tab page - if(m_parentWindow->newTabPage()) - break; + w->load( KUrl("about:home") ); + break; case 1: // blank page urlBar()->setUrl(KUrl("")); break; case 2: // homepage - w->view()->load( QUrl(ReKonfig::homePage()) ); + w->load( KUrl(ReKonfig::homePage()) ); break; default: break; |