Changeset View
Changeset View
Standalone View
Standalone View
src/kcmultidialog.cpp
Show All 19 Lines | 1 | /* | |||
---|---|---|---|---|---|
20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
21 | Boston, MA 02110-1301, USA. | 21 | Boston, MA 02110-1301, USA. | ||
22 | 22 | | |||
23 | */ | 23 | */ | ||
24 | 24 | | |||
25 | #include "kcmultidialog.h" | 25 | #include "kcmultidialog.h" | ||
26 | #include "kcmultidialog_p.h" | 26 | #include "kcmultidialog_p.h" | ||
27 | 27 | | |||
28 | #include "kcmoduleqml_p.h" | ||||
28 | #include "kcmoduleproxy.h" | 29 | #include "kcmoduleproxy.h" | ||
29 | 30 | | |||
30 | #include <QApplication> | 31 | #include <QApplication> | ||
31 | #include <QDebug> | 32 | #include <QDebug> | ||
32 | #include <QDesktopServices> | 33 | #include <QDesktopServices> | ||
33 | #include <QDesktopWidget> | 34 | #include <QDesktopWidget> | ||
34 | #include <QProcess> | 35 | #include <QProcess> | ||
35 | #include <QPushButton> | 36 | #include <QPushButton> | ||
▲ Show 20 Lines • Show All 407 Lines • ▼ Show 20 Line(s) | 428 | { | |||
443 | moduleScroll->viewport()->setAutoFillBackground(false); | 444 | moduleScroll->viewport()->setAutoFillBackground(false); | ||
444 | 445 | | |||
445 | KCModuleProxy *kcm = new KCModuleProxy(moduleInfo, moduleScroll, args); | 446 | KCModuleProxy *kcm = new KCModuleProxy(moduleInfo, moduleScroll, args); | ||
446 | moduleScroll->setWidget(kcm); | 447 | moduleScroll->setWidget(kcm); | ||
447 | 448 | | |||
448 | // qDebug() << moduleInfo.moduleName(); | 449 | // qDebug() << moduleInfo.moduleName(); | ||
449 | KPageWidgetItem *item = new KPageWidgetItem(moduleScroll, moduleInfo.moduleName()); | 450 | KPageWidgetItem *item = new KPageWidgetItem(moduleScroll, moduleInfo.moduleName()); | ||
450 | 451 | | |||
452 | if (qobject_cast<KCModuleQml *>(kcm->realModule())) { | ||||
453 | item->setHeaderVisible(false); | ||||
454 | } | ||||
455 | | ||||
451 | if (kcm->realModule() && kcm->realModule()->useRootOnlyMessage()) { | 456 | if (kcm->realModule() && kcm->realModule()->useRootOnlyMessage()) { | ||
452 | item->setHeader(QStringLiteral("<b>") + | 457 | item->setHeader(QStringLiteral("<b>") + | ||
453 | moduleInfo.comment() + | 458 | moduleInfo.comment() + | ||
454 | QStringLiteral("</b><br><i>") + | 459 | QStringLiteral("</b><br><i>") + | ||
455 | kcm->realModule()->rootOnlyMessage() + | 460 | kcm->realModule()->rootOnlyMessage() + | ||
456 | QStringLiteral("</i>")); | 461 | QStringLiteral("</i>")); | ||
457 | item->setIcon(KDE::icon(moduleInfo.icon(), QStringList() << QStringLiteral("dialog-warning"))); | 462 | item->setIcon(KDE::icon(moduleInfo.icon(), QStringList() << QStringLiteral("dialog-warning"))); | ||
458 | } else { | 463 | } else { | ||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |