Changeset View
Changeset View
Standalone View
Standalone View
classic/ClassicMode.cpp
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 65 | { | |||
---|---|---|---|---|---|
66 | d->aboutClassic = new KAboutData(QStringLiteral("TreeView"), | 66 | d->aboutClassic = new KAboutData(QStringLiteral("TreeView"), | ||
67 | i18n("Tree View"), | 67 | i18n("Tree View"), | ||
68 | QStringLiteral("1.0"), | 68 | QStringLiteral("1.0"), | ||
69 | i18n("Provides a classic tree-based view of control modules."), | 69 | i18n("Provides a classic tree-based view of control modules."), | ||
70 | KAboutLicense::GPL, | 70 | KAboutLicense::GPL, | ||
71 | i18n("(c) 2009, Ben Cooksley")); | 71 | i18n("(c) 2009, Ben Cooksley")); | ||
72 | d->aboutClassic->addAuthor(i18n("Ben Cooksley"), i18n("Author"), QStringLiteral("bcooksley@kde.org")); | 72 | d->aboutClassic->addAuthor(i18n("Ben Cooksley"), i18n("Author"), QStringLiteral("bcooksley@kde.org")); | ||
73 | d->aboutClassic->addAuthor(i18n("Mathias Soeken"), i18n("Developer"), QStringLiteral("msoeken@informatik.uni-bremen.de")); | 73 | d->aboutClassic->addAuthor(i18n("Mathias Soeken"), i18n("Developer"), QStringLiteral("msoeken@informatik.uni-bremen.de")); | ||
74 | d->aboutClassic->setProgramIconName(QStringLiteral("view-list-tree")); | | |||
75 | } | 74 | } | ||
76 | 75 | | |||
77 | ClassicMode::~ClassicMode() | 76 | ClassicMode::~ClassicMode() | ||
78 | { | 77 | { | ||
79 | if( !d->classicTree ) { | 78 | if( !d->classicTree ) { | ||
80 | delete d->classicWidget; | 79 | delete d->classicWidget; | ||
81 | } | 80 | } | ||
82 | delete d; | 81 | delete d; | ||
▲ Show 20 Lines • Show All 162 Lines • ▼ Show 20 Line(s) | |||||
245 | { | 244 | { | ||
246 | d->classicTree->setFocus(); | 245 | d->classicTree->setFocus(); | ||
247 | } | 246 | } | ||
248 | 247 | | |||
249 | void ClassicMode::addConfiguration( KConfigDialog * config ) | 248 | void ClassicMode::addConfiguration( KConfigDialog * config ) | ||
250 | { | 249 | { | ||
251 | QWidget * configWidget = new QWidget( config ); | 250 | QWidget * configWidget = new QWidget( config ); | ||
252 | d->classicConfig.setupUi( configWidget ); | 251 | d->classicConfig.setupUi( configWidget ); | ||
253 | config->addPage( configWidget, i18n("Tree View"), aboutData()->programIconName() ); | 252 | config->addPage( configWidget, i18n("Tree View"), QStringLiteral("view-list-tree") ); | ||
254 | } | 253 | } | ||
255 | 254 | | |||
256 | void ClassicMode::loadConfiguration() | 255 | void ClassicMode::loadConfiguration() | ||
257 | { | 256 | { | ||
258 | d->classicConfig.CbExpand->setChecked( config().readEntry( "autoExpandOneLevel", false ) ); | 257 | d->classicConfig.CbExpand->setChecked( config().readEntry( "autoExpandOneLevel", false ) ); | ||
259 | } | 258 | } | ||
260 | 259 | | |||
261 | void ClassicMode::saveConfiguration() | 260 | void ClassicMode::saveConfiguration() | ||
Show All 15 Lines |