aboutsummaryrefslogtreecommitdiffstats
path: root/src/pinentry/accessibility.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-27 12:18:56 +0000
committersaturneric <[email protected]>2024-07-27 12:18:56 +0000
commite8efa4d104a889f60b2096510a7c492d74ed6b66 (patch)
tree0903bbb4f1a728b48a02de7f2024c1158b8aaf3f /src/pinentry/accessibility.cpp
parentfeat: improve sdk api for pinentry module (diff)
downloadGpgFrontend-e8efa4d104a889f60b2096510a7c492d74ed6b66.tar.gz
GpgFrontend-e8efa4d104a889f60b2096510a7c492d74ed6b66.zip
feat: move pinentry out of source code
Diffstat (limited to '')
-rw-r--r--src/pinentry/accessibility.cpp44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/pinentry/accessibility.cpp b/src/pinentry/accessibility.cpp
deleted file mode 100644
index f139832a..00000000
--- a/src/pinentry/accessibility.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-/* accessibility.cpp - Helpers for making pinentry accessible
- * Copyright (C) 2021 g10 Code GmbH
- *
- * Software engineering by Ingo Klöcker <[email protected]>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <https://www.gnu.org/licenses/>.
- * SPDX-License-Identifier: GPL-2.0+
- */
-
-#include "accessibility.h"
-
-#include <QString>
-#include <QWidget>
-
-namespace Accessibility {
-
-void setDescription(QWidget *w, const QString &text) {
- if (w) {
-#ifndef QT_NO_ACCESSIBILITY
- w->setAccessibleDescription(text);
-#endif
- }
-}
-
-void setName(QWidget *w, const QString &text) {
- if (w) {
-#ifndef QT_NO_ACCESSIBILITY
- w->setAccessibleName(text);
-#endif
- }
-}
-
-} // namespace Accessibility