diff options
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) ); |