diff options
| author | Artur Puzio <[email protected]> | 2016-03-16 22:17:37 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2016-03-16 22:17:37 +0100 |
| commit | 5593c252e8d9638c86dcc2bb9edd394ea14f8ba1 (patch) | |
| tree | 486e7f04fa43758ab3011d75227e2d9791db4014 /src/dolphinrecenttabsmenu.cpp | |
| parent | 59811f849ed47982f5cf73e052640bc9f250ad97 (diff) | |
[CLAZY] Fixed all level 1 and level 2 warnings with small exceptions
REVIEW: 126771
Diffstat (limited to 'src/dolphinrecenttabsmenu.cpp')
| -rw-r--r-- | src/dolphinrecenttabsmenu.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dolphinrecenttabsmenu.cpp b/src/dolphinrecenttabsmenu.cpp index 1087a38e4..c155632c6 100644 --- a/src/dolphinrecenttabsmenu.cpp +++ b/src/dolphinrecenttabsmenu.cpp @@ -25,19 +25,19 @@ #include <QMenu> DolphinRecentTabsMenu::DolphinRecentTabsMenu(QObject* parent) : - KActionMenu(QIcon::fromTheme("edit-undo"), i18n("Recently Closed Tabs"), parent) + KActionMenu(QIcon::fromTheme(QStringLiteral("edit-undo")), i18n("Recently Closed Tabs"), parent) { setDelayed(false); setEnabled(false); m_clearListAction = new QAction(i18n("Empty Recently Closed Tabs"), this); - m_clearListAction->setIcon(QIcon::fromTheme("edit-clear-list")); + m_clearListAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-clear-list"))); addAction(m_clearListAction); addSeparator(); - connect(menu(), SIGNAL(triggered(QAction*)), - this, SLOT(handleAction(QAction*))); + connect(menu(), &QMenu::triggered, + this, &DolphinRecentTabsMenu::handleAction); } void DolphinRecentTabsMenu::rememberClosedTab(const QUrl& url, const QByteArray& state) @@ -83,7 +83,7 @@ void DolphinRecentTabsMenu::handleAction(QAction* action) } emit closedTabsCountChanged(0); } else { - const QByteArray state = action->data().value<QByteArray>(); + const QByteArray state = action->data().toByteArray(); removeAction(action); delete action; action = 0; |
