kjots
Go to the documentation of this file.
25 setFaceType( KPageDialog::List );
26 setButtons( Default | Ok | Cancel );
27 setDefaultButton( Ok );
29 showButtonSeparator(
true );
31 addModule( QLatin1String(
"kjots_config_misc") );
32 connect(
this, SIGNAL(okClicked()), SLOT(
slotOk()) );
46 QHBoxLayout *lay =
new QHBoxLayout(
this );
48 lay->addWidget( miscPage );
49 connect( miscPage->autoSaveInterval, SIGNAL(valueChanged(
int)),
this, SLOT(modified()) );
50 connect( miscPage->autoSave, SIGNAL(stateChanged(
int)),
this, SLOT(modified()) );
54 void KJotsConfigMisc::modified()
61 KConfig config( QLatin1String(
"kjotsrc") );
62 KConfigGroup group = config.group(
"kjots" );
63 miscPage->autoSaveInterval->setValue( group.readEntry(
"AutoSaveInterval", 5 ) );
64 miscPage->autoSave->setChecked( group.readEntry(
"AutoSave",
true ) );
65 emit changed(
false );
70 KConfig config( QLatin1String(
"kjotsrc") );
71 KConfigGroup group = config.group(
"kjots" );
72 group.writeEntry(
"AutoSaveInterval", miscPage->autoSaveInterval->value() );
73 group.writeEntry(
"AutoSave", miscPage->autoSave->isChecked() );
75 emit changed(
false );
78 #include "kjotsconfigdlg.moc"
virtual void load()
Reimplemented from KCModule.
virtual void save()
Reimplemented form KCModule.
KJotsConfigMisc(const KComponentData &inst, QWidget *parent)
KJotsConfigDlg(const QString &title, QWidget *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:39 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.