aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core-utils/lumina-config/AppDialog.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src-qt5/core-utils/lumina-config/AppDialog.h b/src-qt5/core-utils/lumina-config/AppDialog.h
index 2b03fc76..6a2c03fd 100644
--- a/src-qt5/core-utils/lumina-config/AppDialog.h
+++ b/src-qt5/core-utils/lumina-config/AppDialog.h
@@ -27,7 +27,7 @@ public:
ui->setupUi(this); //load the designer file
appreset = false;
ui->listApps->clear();
- QListWidgetItem *defaultItem = nullptr;
+ QListWidgetItem *defaultItem = 0;
QList<XDGDesktop*> APPS = LXDG::sortDesktopNames(APPSLIST->apps(false,false)); //Don't show all/hidden
for(int i=0; i<APPS.length(); i++){
QListWidgetItem *app = new QListWidgetItem(LXDG::findIcon(APPS[i]->icon,"application-x-executable"), APPS[i]->name);
@@ -38,7 +38,7 @@ public:
}
}
if(ui->listApps->count()){
- ui->listApps->setCurrentItem(defaultItem != nullptr ? defaultItem : ui->listApps->item(0));
+ ui->listApps->setCurrentItem(defaultItem != 0 ? defaultItem : ui->listApps->item(0));
}
this->setWindowIcon( LXDG::findIcon("system-search","") );
if(parent!=0){
@@ -66,7 +66,7 @@ public:
private slots:
void on_buttonBox_accepted(){
QListWidgetItem *item = ui->listApps->currentItem();
- if(item != nullptr){
+ if(item != 0){
appselected = item->data(Qt::UserRole).toString();
}
this->close();
@@ -85,18 +85,18 @@ private slots:
this->close();
}
void on_lineSearch_textChanged(const QString &term){
- QListWidgetItem *first_visible = nullptr;
+ QListWidgetItem *first_visible = 0;
for(int i = 0; i < ui->listApps->count(); i++){
QListWidgetItem *item = ui->listApps->item(i);
bool visible = item->text().contains(term, Qt::CaseInsensitive);
item->setHidden(!visible);
- if(visible && first_visible == nullptr){
+ if(visible && first_visible == 0){
first_visible = item;
}
}
//Select the first app
ui->listApps->setCurrentItem(first_visible);
- if(first_visible != nullptr){
+ if(first_visible != 0){
ui->listApps->scrollToItem(first_visible);
}
}
bgstack15