Skip to content

Commit

Permalink
removed includes and comments that were no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Bichler authored and Johannes Bichler committed Apr 24, 2024
1 parent 3e2e59e commit 2d57f93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
8 changes: 3 additions & 5 deletions src/InputPanelIface.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "InputPanelIface.hpp"
#include "qdebug.h"

struct InputPanelIface::InputPanelIfacePrivate {
QColor backgroundColor{};
Expand Down Expand Up @@ -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) {
Expand All @@ -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();
Expand Down
17 changes: 0 additions & 17 deletions src/qml/LanguageKey.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}

0 comments on commit 2d57f93

Please sign in to comment.