diff options
author | Ken Moore <moorekou@gmail.com> | 2016-06-28 07:59:30 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-06-28 07:59:30 -0400 |
commit | 7738a79cdf92bc10a9bd6679d1753f0587573ffc (patch) | |
tree | 9fd976e9bacf89fca00961f50084a7ad71082106 /src-qt5/core-utils/lumina-config/pages/page_main.cpp | |
parent | Oops - forgot to add the page_interface_panels files to git. (diff) | |
download | lumina-7738a79cdf92bc10a9bd6679d1753f0587573ffc.tar.gz lumina-7738a79cdf92bc10a9bd6679d1753f0587573ffc.tar.bz2 lumina-7738a79cdf92bc10a9bd6679d1753f0587573ffc.zip |
Add in the last 2 converted pages (session_[locale/options]). Leave the new UI enabled now.
Diffstat (limited to 'src-qt5/core-utils/lumina-config/pages/page_main.cpp')
-rw-r--r-- | src-qt5/core-utils/lumina-config/pages/page_main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/page_main.cpp b/src-qt5/core-utils/lumina-config/pages/page_main.cpp index f8168e0b..ec03f8a5 100644 --- a/src-qt5/core-utils/lumina-config/pages/page_main.cpp +++ b/src-qt5/core-utils/lumina-config/pages/page_main.cpp @@ -35,9 +35,9 @@ void page_main::UpdateItems(QString search){ QTreeWidgetItem *session = new QTreeWidgetItem(); session->setIcon(0, LXDG::findIcon("preferences-system-session-services","")); session->setText(0, tr("Desktop Session Options")); - QTreeWidgetItem *apps = new QTreeWidgetItem(); - apps->setIcon(0, LXDG::findIcon("preferences-desktop-filetype-association","")); - apps->setText(0, tr("Application Settings")); + QTreeWidgetItem *user = new QTreeWidgetItem(); + user->setIcon(0, LXDG::findIcon("preferences-desktop-user","")); + user->setText(0, tr("User Settings")); //Now go through and add in the known pages for each category QStringList SL = search.split(" "); //search list for(int i=0; i<INFO.length(); i++){ @@ -51,7 +51,7 @@ void page_main::UpdateItems(QString search){ } if(!ok){ continue; } //no duplicates between search terms and available info } - qDebug() << "Item Found:" << INFO[i].id << INFO[i].title; + //qDebug() << "Item Found:" << INFO[i].id << INFO[i].title; QTreeWidgetItem *it = new QTreeWidgetItem(); it->setIcon(0, LXDG::findIcon(INFO[i].icon,"") ); it->setText(0, INFO[i].name); @@ -61,14 +61,14 @@ void page_main::UpdateItems(QString search){ if(INFO[i].category=="interface"){ interface->addChild(it); } else if(INFO[i].category=="appearance"){ appearance->addChild(it); } else if(INFO[i].category=="session"){ session->addChild(it); } - else if(INFO[i].category=="apps"){ apps->addChild(it); } + else if(INFO[i].category=="user"){ user->addChild(it); } else{ ui->treeWidget->addTopLevelItem(it); } } //Now add the categories to the tree widget if they are non-empty if(interface->childCount()>0){ ui->treeWidget->addTopLevelItem(interface); interface->setExpanded(true); } if(appearance->childCount()>0){ ui->treeWidget->addTopLevelItem(appearance); appearance->setExpanded(true); } if(session->childCount()>0){ ui->treeWidget->addTopLevelItem(session); session->setExpanded(true); } - if(apps->childCount()>0){ ui->treeWidget->addTopLevelItem(apps); apps->setExpanded(true); } + if(user->childCount()>0){ ui->treeWidget->addTopLevelItem(user); user->setExpanded(true); } } //================ |