Add missing names for parameter variables
This commit is contained in:
@@ -91,7 +91,10 @@ int GlobalShortcut::nativeKeycode(const Qt::Key qt_keycode) {
|
||||
|
||||
}
|
||||
|
||||
int GlobalShortcut::nativeKeycode2(const Qt::Key) { return 0; }
|
||||
int GlobalShortcut::nativeKeycode2(const Qt::Key key) {
|
||||
Q_UNUSED(key)
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool GlobalShortcut::registerShortcut(const int native_key, const int native_mods) {
|
||||
|
||||
|
||||
@@ -117,7 +117,9 @@ void GlobalShortcutsBackendGnome::DoUnregister() {
|
||||
|
||||
}
|
||||
|
||||
void GlobalShortcutsBackendGnome::GnomeMediaKeyPressed(const QString&, const QString &key) {
|
||||
void GlobalShortcutsBackendGnome::GnomeMediaKeyPressed(const QString &application, const QString &key) {
|
||||
|
||||
Q_UNUSED(application)
|
||||
|
||||
auto shortcuts = manager_->shortcuts();
|
||||
if (key == "Play"_L1) shortcuts[QStringLiteral("play_pause")].action->trigger();
|
||||
|
||||
@@ -207,7 +207,9 @@ QList<QKeySequence> GlobalShortcutsBackendKDE::ToKeySequenceList(const QList<int
|
||||
|
||||
}
|
||||
|
||||
void GlobalShortcutsBackendKDE::GlobalShortcutPressed(const QString &component_unique, const QString &shortcut_unique, qint64) {
|
||||
void GlobalShortcutsBackendKDE::GlobalShortcutPressed(const QString &component_unique, const QString &shortcut_unique, const qint64 timestamp) {
|
||||
|
||||
Q_UNUSED(timestamp)
|
||||
|
||||
if (QCoreApplication::applicationName() == component_unique && actions_.contains(shortcut_unique)) {
|
||||
const QList<QAction*> actions = actions_.values(shortcut_unique);
|
||||
|
||||
@@ -59,7 +59,7 @@ class GlobalShortcutsBackendKDE : public GlobalShortcutsBackend {
|
||||
|
||||
private Q_SLOTS:
|
||||
void RegisterFinished(QDBusPendingCallWatcher *watcher);
|
||||
void GlobalShortcutPressed(const QString &component_unique, const QString &shortcut_unique, qint64);
|
||||
void GlobalShortcutPressed(const QString &component_unique, const QString &shortcut_unique, const qint64 timestamp);
|
||||
|
||||
private:
|
||||
OrgKdeKGlobalAccelInterface *interface_;
|
||||
|
||||
@@ -117,7 +117,9 @@ void GlobalShortcutsBackendMate::DoUnregister() {
|
||||
|
||||
}
|
||||
|
||||
void GlobalShortcutsBackendMate::MateMediaKeyPressed(const QString&, const QString &key) {
|
||||
void GlobalShortcutsBackendMate::MateMediaKeyPressed(const QString &application, const QString &key) {
|
||||
|
||||
Q_UNUSED(application)
|
||||
|
||||
auto shortcuts = manager_->shortcuts();
|
||||
if (key == "Play"_L1) shortcuts[QStringLiteral("play_pause")].action->trigger();
|
||||
|
||||
Reference in New Issue
Block a user