Changeset View
Changeset View
Standalone View
Standalone View
src/kmoretools/kmoretoolsconfigdialog_p.cpp
Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Line(s) | 181 | { | |||
---|---|---|---|---|---|
196 | // | 196 | // | ||
197 | auto notInstalledServices = defaultStructure.notInstalledServices(); | 197 | auto notInstalledServices = defaultStructure.notInstalledServices(); | ||
198 | d->configUi->frameNotInstalledTools->setVisible(!notInstalledServices.empty()); | 198 | d->configUi->frameNotInstalledTools->setVisible(!notInstalledServices.empty()); | ||
199 | if (!notInstalledServices.empty()) { | 199 | if (!notInstalledServices.empty()) { | ||
200 | auto menu = new QMenu(this); | 200 | auto menu = new QMenu(this); | ||
201 | for (const KmtMenuItemDto& registeredService : notInstalledServices) { | 201 | for (const KmtMenuItemDto& registeredService : notInstalledServices) { | ||
202 | 202 | | |||
203 | QMenu* submenuForNotInstalled = KmtNotInstalledUtil::createSubmenuForNotInstalledApp( | 203 | QMenu* submenuForNotInstalled = KmtNotInstalledUtil::createSubmenuForNotInstalledApp( | ||
204 | registeredService.text, menu, registeredService.icon, registeredService.homepageUrl); | 204 | registeredService.text, menu, registeredService.icon, registeredService.homepageUrl, registeredService.appstreamId); | ||
205 | menu->addMenu(submenuForNotInstalled); | 205 | menu->addMenu(submenuForNotInstalled); | ||
206 | } | 206 | } | ||
207 | d->configUi->buttonNotInstalledTools->setMenu(menu); | 207 | d->configUi->buttonNotInstalledTools->setMenu(menu); | ||
208 | } | 208 | } | ||
209 | 209 | | |||
210 | //auto itemModel = new QStandardItemModel(); | 210 | //auto itemModel = new QStandardItemModel(); | ||
211 | //configUi->listMainSection->setModel(itemModel); | 211 | //configUi->listMainSection->setModel(itemModel); | ||
212 | //configUi->listMainSection->setDragDropMode(QAbstractItemView::DragOnly); | 212 | //configUi->listMainSection->setDragDropMode(QAbstractItemView::DragOnly); | ||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |