aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-11-25 12:19:42 -0500
committerKen Moore <moorekou@gmail.com>2015-11-25 12:19:42 -0500
commit66f1de8f76496fd4a03f1c6452082fee6ccb9934 (patch)
tree86fc3e293360c3368581f90b4cf40cb38a8ccdc8
parentChange the icon for the individual items in the workspace switcher plugin (so... (diff)
downloadlumina-66f1de8f76496fd4a03f1c6452082fee6ccb9934.tar.gz
lumina-66f1de8f76496fd4a03f1c6452082fee6ccb9934.tar.bz2
lumina-66f1de8f76496fd4a03f1c6452082fee6ccb9934.zip
make the userbutton sort items case-insensitively.
-rw-r--r--lumina-desktop/panel-plugins/userbutton/UserWidget.cpp4
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) );
bgstack15