summaryrefslogtreecommitdiff
path: root/src/newtabpage.cpp
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@gmail.com>2011-02-24 18:35:20 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-24 18:38:45 +0100
commit23b44d0344304499ba8e1f199720202381920827 (patch)
treeedd144e38d6dc3619b8b889f3a80a69a8dc52180 /src/newtabpage.cpp
parentSave one updateRightIcons call from the bookmark icon. (diff)
downloadrekonq-23b44d0344304499ba8e1f199720202381920827.tar.xz
No more static members in the Application class,
an rApp shortcut for Application::instance, clean up code switching to use the new shortcut Reviewed by: adjam
Diffstat (limited to 'src/newtabpage.cpp')
-rw-r--r--src/newtabpage.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp
index 7dcc9581..1ae1a7a9 100644
--- a/src/newtabpage.cpp
+++ b/src/newtabpage.cpp
@@ -110,19 +110,19 @@ void NewTabPage::generate(const KUrl &url)
if (url.directory() == QL1S("preview/modify"))
{
int index = url.fileName().toInt();
- Application::instance()->mainWindow()->currentTab()->createPreviewSelectorBar(index);
+ rApp->mainWindow()->currentTab()->createPreviewSelectorBar(index);
return;
}
}
if (url.fileName() == QL1S("clear"))
{
- Application::instance()->mainWindow()->actionByName("clear_private_data")->trigger();
+ rApp->mainWindow()->actionByName("clear_private_data")->trigger();
generate( QL1S("about:") + url.directory() );
return;
}
if (url == KUrl("about:bookmarks/edit"))
{
- Application::bookmarkProvider()->bookmarkManager()->slotEditBookmarks();
+ rApp->bookmarkProvider()->bookmarkManager()->slotEditBookmarks();
return;
}
@@ -396,7 +396,7 @@ void NewTabPage::historyPage()
KIconLoader::Toolbar);
m_root.document().findFirst( QL1S("#actions") ).appendInside(clearData);
- HistoryTreeModel *model = Application::historyManager()->historyTreeModel();
+ HistoryTreeModel *model = rApp->historyManager()->historyTreeModel();
if (model->rowCount() == 0)
{
@@ -454,7 +454,7 @@ void NewTabPage::bookmarksPage()
KIconLoader::Toolbar);
m_root.document().findFirst( QL1S("#actions") ).appendInside(editBookmarks);
- KBookmarkGroup bookGroup = Application::bookmarkProvider()->rootGroup();
+ KBookmarkGroup bookGroup = rApp->bookmarkProvider()->rootGroup();
if (bookGroup.isNull())
{
m_root.addClass( QL1S("empty") );
@@ -515,7 +515,7 @@ void NewTabPage::closedTabsPage()
{
m_root.addClass( QL1S("closedTabs") );
- QList<HistoryItem> links = Application::instance()->mainWindow()->mainView()->recentlyClosedTabs();
+ QList<HistoryItem> links = rApp->mainWindow()->mainView()->recentlyClosedTabs();
if (links.isEmpty())
{
@@ -565,7 +565,7 @@ void NewTabPage::downloadsPage()
KIconLoader::Toolbar);
m_root.document().findFirst( QL1S("#actions") ).appendInside(clearData);
- DownloadList list = Application::instance()->downloads();
+ DownloadList list = rApp->downloads();
if (list.isEmpty())
{