diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-09 12:32:58 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-09 12:32:58 +0100 |
commit | e8e00372f5e1a881b1ce83a3623208dae7833f4c (patch) | |
tree | 86e724a3fe7fdd69420da3d74fc32c6745eb35b2 /src/rekonqpage/newtabpage.cpp | |
parent | Free MainWindow from PreviewSelectorBar (diff) | |
download | rekonq-e8e00372f5e1a881b1ce83a3623208dae7833f4c.tar.xz |
HUGE CHANGE on Preview Page Choosing
The idea here is to free rekonq from unuseful weight while browsing
and better maintain code.
- Moved PreviewSelectorBar to be one of the WebTab bar
- (this way position moved to up rather then down)
- creation on use && deletion on close (SAVE MEMORY)
- free others page for browsing
- fix copyright
- CLEAN API (is private/public a misconception?) && comments
Diffstat (limited to 'src/rekonqpage/newtabpage.cpp')
-rw-r--r-- | src/rekonqpage/newtabpage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp index 95b15ed9..7a373f62 100644 --- a/src/rekonqpage/newtabpage.cpp +++ b/src/rekonqpage/newtabpage.cpp @@ -39,6 +39,7 @@ #include "mainview.h" #include "websnap.h" #include "previewselectorbar.h" +#include "webtab.h" // KDE Includes #include <KStandardDirs> @@ -87,8 +88,7 @@ void NewTabPage::generate(KUrl url) if(url.directory() == QString("preview/modify")) { int index = url.fileName().toInt(); - Application::instance()->mainWindow()->findChild<PreviewSelectorBar *>() - ->enable(index, qobject_cast< WebPage* >(m_root.webFrame()->page())); + Application::instance()->mainWindow()->currentTab()->createPreviewSelectorBar(index); return; } } |