From 3b4ce3c25eac554499564b1946bc732a7c0bb69c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 10 Nov 2019 01:26:42 -0600 Subject: Qt UI: UI.Input: Use keyboard icon for keyboard layouts --- ui/qt5/inputpage.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/qt5') 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 #include #include @@ -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); -- cgit v1.2.3-60-g2f50