summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-30 18:08:25 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-30 18:08:25 +0200
commit54e258db126292e0f11201095e1f5b67b00e9833 (patch)
tree79b840b5f95ad0b741da2bc6911a1bcabf381621 /src/tabbar.cpp
parentrekonq 0.4.66 (diff)
downloadrekonq-54e258db126292e0f11201095e1f5b67b00e9833.tar.xz
QLatin1String -> QL1S
added cppcheck script
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index a3023dac..27835892 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -277,17 +277,17 @@ void TabBar::contextMenu(int tab, const QPoint &pos)
KMenu menu;
MainWindow *mainWindow = Application::instance()->mainWindow();
- menu.addAction(mainWindow->actionByName(QLatin1String("new_tab")));
- menu.addAction(mainWindow->actionByName("clone_tab"));
+ menu.addAction(mainWindow->actionByName( QL1S("new_tab") ));
+ menu.addAction(mainWindow->actionByName( QL1S("clone_tab") ));
if (count() > 1)
- menu.addAction(mainWindow->actionByName("detach_tab"));
+ menu.addAction(mainWindow->actionByName( QL1S("detach_tab") ));
menu.addSeparator();
- menu.addAction(mainWindow->actionByName("close_tab"));
- menu.addAction(mainWindow->actionByName("close_other_tabs"));
+ menu.addAction(mainWindow->actionByName( QL1S("close_tab") ));
+ menu.addAction(mainWindow->actionByName( QL1S("close_other_tabs") ));
menu.addSeparator();
- menu.addAction(mainWindow->actionByName("reload_tab"));
- menu.addAction(mainWindow->actionByName("reload_all_tabs"));
+ menu.addAction(mainWindow->actionByName( QL1S("reload_tab") ));
+ menu.addAction(mainWindow->actionByName( QL1S("reload_all_tabs") ));
menu.exec(pos);
}
@@ -298,9 +298,9 @@ void TabBar::emptyAreaContextMenu(const QPoint &pos)
KMenu menu;
MainWindow *mainWindow = Application::instance()->mainWindow();
- menu.addAction(mainWindow->actionByName(QLatin1String("new_tab")));
+ menu.addAction(mainWindow->actionByName( QL1S("new_tab") ));
menu.addSeparator();
- menu.addAction(mainWindow->actionByName("reload_all_tabs"));
+ menu.addAction(mainWindow->actionByName( QL1S("reload_all_tabs") ));
menu.exec(pos);
}