Add missing names for parameter variables

This commit is contained in:
Jonas Kvinge
2024-09-28 12:32:12 +02:00
parent f2e28d18bc
commit 3cb0f60900
73 changed files with 365 additions and 164 deletions

View File

@@ -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) {

View File

@@ -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();

View File

@@ -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);

View File

@@ -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_;

View File

@@ -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();