kapptemplate
Go to the documentation of this file.
24 #include <QtGui/QDropEvent>
25 #include <QtGui/QPainter>
26 #include <QtGui/QPrinter>
28 #include <KConfigDialog>
32 #include <KActionCollection>
33 #include <KStandardAction>
68 KStandardAction::openNew(
this, SLOT(fileNew()), actionCollection());
69 KStandardAction::quit(qApp, SLOT(closeAllWindows()), actionCollection());
71 KStandardAction::preferences(
this, SLOT(optionsPreferences()), actionCollection());
74 KAction *custom =
new KAction(KIcon(
"colorize"), i18n(
"Swi&tch Colors"),
this);
75 actionCollection()->addAction(
QLatin1String(
"switch_action"), custom );
76 connect(custom, SIGNAL(triggered(
bool)),
m_view, SLOT(switchColors()));
89 void %{
APPNAME}::optionsPreferences()
96 if ( KConfigDialog::showDialog(
"settings" ) ) {
99 KConfigDialog *dialog =
new KConfigDialog(
this,
"settings",
Settings::self());
102 dialog->addPage(generalSettingsDlg, i18n(
"General"),
"package_setting");
103 connect(dialog, SIGNAL(settingsChanged(
QString)),
m_view, SLOT(settingsChanged()));
104 dialog->setAttribute( Qt::WA_DeleteOnClose );
108 #include "%{APPNAMELC}.moc"
Ui::prefs_base ui_prefs_base
class @6 QWidget
This is the main view class for %{APPNAME}.
m_view(new%{APPNAME}View(this))
class SettingsHelper View
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:44 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.