diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-10 01:26:42 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-10 01:26:42 -0600 |
commit | 3b4ce3c25eac554499564b1946bc732a7c0bb69c (patch) | |
tree | 02f48d198ff77daf103c35bb165d1470b71fad93 | |
parent | 63cae9e7ea79c907cf394def4be1d3897f6f77aa (diff) | |
download | horizon-3b4ce3c25eac554499564b1946bc732a7c0bb69c.tar.gz horizon-3b4ce3c25eac554499564b1946bc732a7c0bb69c.tar.bz2 horizon-3b4ce3c25eac554499564b1946bc732a7c0bb69c.tar.xz horizon-3b4ce3c25eac554499564b1946bc732a7c0bb69c.zip |
Qt UI: UI.Input: Use keyboard icon for keyboard layouts
-rw-r--r-- | ui/qt5/inputpage.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt5/inputpage.cc b/ui/qt5/inputpage.cc index f0816b4..2807c02 100644 --- a/ui/qt5/inputpage.cc +++ b/ui/qt5/inputpage.cc @@ -12,6 +12,7 @@ #include "inputpage.hh" +#include <QDebug> #include <QLabel> #include <QVBoxLayout> @@ -51,7 +52,8 @@ InputPage::InputPage(QWidget *parent) : HorizonWizardPage(parent) { layoutList->setSelectionMode(QAbstractItemView::SingleSelection); layoutList->setWhatsThis(tr("This is a list of keyboard layouts. Select one to choose the layout of the keyboard you will be using on your Adélie Linux computer.")); for(auto &map : valid_keymaps) { - layoutList->addItem(map.c_str()); + QIcon myIcon = QIcon::fromTheme("input-keyboard"); + new QListWidgetItem(myIcon, map.c_str(), layoutList); } registerField("keymap*", layoutList); |