There are four usages of this overload, two of them are for the
intentionally disabled "Switch to Next/Previous Desktop" actions and the
rest are for "Switch One Desktop to X" actions. Due to the order they
were added, an empty keybind was set as the default and the actual
keybind is never enabled.
Now there's a QKeySequence argument to this overload, so an unexpected
empty keybind is never added. The two usages of addAction that depend on
this empty keybind behavior now pass in an empty QKeySequence.
BUG: 475748
addAction(QStringLiteral("Switch to Next Desktop"),i18n("Switch to Next Desktop"),&VirtualDesktopManager::slotNext);
addAction(QStringLiteral("Switch to Next Desktop"),i18n("Switch to Next Desktop"),QKeySequence(),&VirtualDesktopManager::slotNext);
addAction(QStringLiteral("Switch to Previous Desktop"),i18n("Switch to Previous Desktop"),&VirtualDesktopManager::slotPrevious);
addAction(QStringLiteral("Switch to Previous Desktop"),i18n("Switch to Previous Desktop"),QKeySequence(),&VirtualDesktopManager::slotPrevious);
// shortcuts
// shortcuts
QAction*slotRightAction=addAction(QStringLiteral("Switch One Desktop to the Right"),i18n("Switch One Desktop to the Right"),&VirtualDesktopManager::slotRight);
addAction(QStringLiteral("Switch One Desktop to the Right"),i18n("Switch One Desktop to the Right"),QKeySequence(Qt::CTRL|Qt::META|Qt::Key_Right),&VirtualDesktopManager::slotRight);
addAction(QStringLiteral("Switch One Desktop to the Left"),i18n("Switch One Desktop to the Left"),QKeySequence(Qt::CTRL|Qt::META|Qt::Key_Left),&VirtualDesktopManager::slotLeft);
QAction*slotLeftAction=addAction(QStringLiteral("Switch One Desktop to the Left"),i18n("Switch One Desktop to the Left"),&VirtualDesktopManager::slotLeft);
addAction(QStringLiteral("Switch One Desktop Up"),i18n("Switch One Desktop Up"),QKeySequence(Qt::CTRL|Qt::META|Qt::Key_Up),&VirtualDesktopManager::slotUp);
addAction(QStringLiteral("Switch One Desktop Down"),i18n("Switch One Desktop Down"),QKeySequence(Qt::CTRL|Qt::META|Qt::Key_Down),&VirtualDesktopManager::slotDown);
QAction*slotUpAction=addAction(QStringLiteral("Switch One Desktop Up"),i18n("Switch One Desktop Up"),&VirtualDesktopManager::slotUp);