summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/configure.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-04-22 17:39:05 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-04-22 17:39:05 +0000
commitafa6afc3bcb1337b842cab30280ad400d3e0668b (patch)
tree94ab5d0266dbc80e30c4b14dc6f7bb7e932285a1 /rbutil/rbutilqt/configure.cpp
parent4d25fb8fe1a3525f20cc1298e87a83ea6b68e003 (diff)
downloadrockbox-afa6afc3bcb1337b842cab30280ad400d3e0668b.tar.gz
rockbox-afa6afc3bcb1337b842cab30280ad400d3e0668b.tar.bz2
rockbox-afa6afc3bcb1337b842cab30280ad400d3e0668b.zip
Better hilight detected item after autodetection.
To have a better indication what player has been detected and to keep this information in view make the entry for the detected player bold. This also (partly) addresses FS#10694. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29761 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r--rbutil/rbutilqt/configure.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 5c02cd8d7b..50af453649 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -619,9 +619,15 @@ void Config::autodetect()
for(int j=0;j < itmList.at(i)->childCount();j++)
{
QString data = itmList.at(i)->child(j)->data(0, Qt::UserRole).toString();
+ // unset bold flag
+ QFont f = itmList.at(i)->child(j)->font(0);
+ f.setBold(false);
+ itmList.at(i)->child(j)->setFont(0, f);
if(devicename == data) // item found
{
+ f.setBold(true);
+ itmList.at(i)->child(j)->setFont(0, f);
itmList.at(i)->child(j)->setSelected(true); //select the item
itmList.at(i)->setExpanded(true); //expand the platform item
//ui.treeDevices->indexOfTopLevelItem(itmList.at(i)->child(j));