diff options
author | Ken Moore <moorekou@gmail.com> | 2015-11-25 12:19:42 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-11-25 12:19:42 -0500 |
commit | 66f1de8f76496fd4a03f1c6452082fee6ccb9934 (patch) | |
tree | 86fc3e293360c3368581f90b4cf40cb38a8ccdc8 /lumina-desktop | |
parent | Change the icon for the individual items in the workspace switcher plugin (so... (diff) | |
download | lumina-66f1de8f76496fd4a03f1c6452082fee6ccb9934.tar.gz lumina-66f1de8f76496fd4a03f1c6452082fee6ccb9934.tar.bz2 lumina-66f1de8f76496fd4a03f1c6452082fee6ccb9934.zip |
make the userbutton sort items case-insensitively.
Diffstat (limited to 'lumina-desktop')
-rw-r--r-- | lumina-desktop/panel-plugins/userbutton/UserWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp index 8873cce6..da115478 100644 --- a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp +++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp @@ -66,7 +66,7 @@ void UserWidget::SortScrollArea(QScrollArea *area){ QLayout *lay = area->widget()->layout(); QStringList items; for(int i=0; i<lay->count(); i++){ - items << lay->itemAt(i)->widget()->whatsThis(); + items << lay->itemAt(i)->widget()->whatsThis().toLower(); } items.sort(); @@ -76,7 +76,7 @@ void UserWidget::SortScrollArea(QScrollArea *area){ //QLayouts are weird in that they can only add items to the end - need to re-insert almost every item for(int j=0; j<lay->count(); j++){ //Find this item - if(lay->itemAt(j)->widget()->whatsThis()==items[i]){ + if(lay->itemAt(j)->widget()->whatsThis().toLower()==items[i]){ //Found it - now move it if necessary //qDebug() << "Found Item:" << items[i] << i << j; lay->addItem( lay->takeAt(j) ); |