QTfrontend/ui/widget/keybinder.cpp
changeset 13309 2bdae461ae5f
parent 12897 fc47fc4af6bd
child 14218 925e2c9877a8
--- a/QTfrontend/ui/widget/keybinder.cpp	Wed Apr 04 18:38:00 2018 +0200
+++ b/QTfrontend/ui/widget/keybinder.cpp	Wed Apr 04 19:33:19 2018 +0200
@@ -180,6 +180,12 @@
         curTable->insertRow(row);
         curTable->setItem(row, 0, nameCell);
         QTableWidgetItem * bindCell = new QTableWidgetItem(comboBox->currentText());
+        QIcon dropDownIcon = QIcon();
+        QPixmap dd1 = QPixmap(":/res/dropdown.png");
+        QPixmap dd2 = QPixmap(":/res/dropdown_selected.png");
+        dropDownIcon.addPixmap(dd1, QIcon::Normal);
+        dropDownIcon.addPixmap(dd2, QIcon::Selected);
+        bindCell->setIcon(dropDownIcon);
         bindCell->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
         curTable->setItem(row, 1, bindCell);
         curTable->resizeColumnsToContents();