summaryrefslogtreecommitdiff
path: root/src/tabbar.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/tabbar.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/tabbar.cpp')
-rw-r--r--src/tabbar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index be20ecd3..fbf87145 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -308,7 +308,7 @@ void TabBar::contextMenu(int tab, const QPoint &pos)
m_actualIndex = tab;
KMenu menu;
- MainWindow *mainWindow = Application::instance()->mainWindow();
+ MainWindow *mainWindow = rApp->mainWindow();
menu.addAction(mainWindow->actionByName( QL1S("new_tab") ));
menu.addAction(mainWindow->actionByName( QL1S("clone_tab") ));
@@ -332,7 +332,7 @@ void TabBar::emptyAreaContextMenu(const QPoint &pos)
setupHistoryActions();
KMenu menu;
- MainWindow *mainWindow = Application::instance()->mainWindow();
+ MainWindow *mainWindow = rApp->mainWindow();
menu.addAction(mainWindow->actionByName( QL1S("new_tab") ));
menu.addAction(mainWindow->actionByName( QL1S("open_last_closed_tab") ));
@@ -367,7 +367,7 @@ void TabBar::tabRemoved(int index)
void TabBar::setupHistoryActions()
{
- MainWindow *w = Application::instance()->mainWindow();
+ MainWindow *w = rApp->mainWindow();
MainView *mv = qobject_cast<MainView *>(parent());
QAction *openLastClosedTabAction = w->actionByName( QL1S("open_last_closed_tab") );
@@ -389,7 +389,7 @@ void TabBar::setupHistoryActions()
Q_FOREACH(const HistoryItem &item, mv->recentlyClosedTabs())
{
- KAction *a = new KAction(Application::iconManager()->iconForUrl(item.url), item.title, this);
+ KAction *a = new KAction(rApp->iconManager()->iconForUrl(item.url), item.title, this);
a->setData(item.url);
connect(a, SIGNAL(triggered()), mv, SLOT(openClosedTab()));
am->addAction(a);