From 2d57f9361a7ac0c464e6cd6117bdb9bcfeeb73d8 Mon Sep 17 00:00:00 2001 From: Johannes Bichler Date: Wed, 24 Apr 2024 09:58:03 +0200 Subject: [PATCH] removed includes and comments that were no longer needed --- src/InputPanelIface.cpp | 8 +++----- src/qml/LanguageKey.qml | 17 ----------------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/src/InputPanelIface.cpp b/src/InputPanelIface.cpp index 6998b93..1a58488 100644 --- a/src/InputPanelIface.cpp +++ b/src/InputPanelIface.cpp @@ -1,5 +1,4 @@ #include "InputPanelIface.hpp" -#include "qdebug.h" struct InputPanelIface::InputPanelIfacePrivate { QColor backgroundColor{}; @@ -127,9 +126,7 @@ void InputPanelIface::setHideKeyboardIcon(const QString &hideKeyboardIcon) { } } -QString InputPanelIface::languageIcon() const { - return pimpl->languageIcon; -} +QString InputPanelIface::languageIcon() const { return pimpl->languageIcon; } void InputPanelIface::setLanguageIcon(const QString &languageIcon) { if (pimpl->languageIcon != languageIcon) { @@ -142,7 +139,8 @@ QStringList InputPanelIface::availableLanguageLayouts() const { return pimpl->availableLanguageLayouts; } -void InputPanelIface::setAvailableLanguageLayouts(const QStringList &availableLanguageLayouts) { +void InputPanelIface::setAvailableLanguageLayouts( + const QStringList &availableLanguageLayouts) { if (pimpl->availableLanguageLayouts != availableLanguageLayouts) { pimpl->availableLanguageLayouts = availableLanguageLayouts; emit availableLanguageLayoutsChanged(); diff --git a/src/qml/LanguageKey.qml b/src/qml/LanguageKey.qml index d38668c..b619a1c 100644 --- a/src/qml/LanguageKey.qml +++ b/src/qml/LanguageKey.qml @@ -21,22 +21,5 @@ Key { }else{ InputPanel.languageLayout = InputPanel.availableLanguageLayouts[0] } - - - // for(let i = 0; i < availableLanguageLayouts.length; i++){ - // if(availableLanguageLayouts[i] === languageLayout){ - // if(i+1 < availableLanguageLayouts.length){ - // if(InputEngine.inputLayoutValid(availableLanguageLayouts[i+1])){ - // languageLayout = availableLanguageLayouts[i+1] - // }else{ - // languageLayout = "En" - // } - // }else{ - // languageLayout = availableLanguageLayouts[0] - // } - // return - // } - // } - // languageLayout = availableLanguageLayouts[0] } }