diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /kmobile/pref.cpp | |
download | tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmobile/pref.cpp')
-rw-r--r-- | kmobile/pref.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/kmobile/pref.cpp b/kmobile/pref.cpp new file mode 100644 index 000000000..1d463cb34 --- /dev/null +++ b/kmobile/pref.cpp @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2003 Helge Deller <deller@kde.org> + */ + +#include "pref.h" + +#include <klocale.h> + +#include <qlayout.h> +#include <qlabel.h> + +KMobilePreferences::KMobilePreferences() + : KDialogBase(TreeList, i18n("Preferences"), + Help|Default|Ok|Apply|Cancel, Ok) +{ + // this is the base class for your preferences dialog. it is now + // a Treelist dialog.. but there are a number of other + // possibilities (including Tab, Swallow, and just Plain) + QFrame *frame; + frame = addPage(i18n("First Page"), i18n("Page One Options")); + m_pageOne = new KMobilePrefPageOne(frame); + + frame = addPage(i18n("Second Page"), i18n("Page Two Options")); + m_pageTwo = new KMobilePrefPageTwo(frame); +} + +KMobilePrefPageOne::KMobilePrefPageOne(QWidget *parent) + : QFrame(parent) +{ + QHBoxLayout *layout = new QHBoxLayout(this); + layout->setAutoAdd(true); + + new QLabel(i18n("Add something here"), this); +} + +KMobilePrefPageTwo::KMobilePrefPageTwo(QWidget *parent) + : QFrame(parent) +{ + QHBoxLayout *layout = new QHBoxLayout(this); + layout->setAutoAdd(true); + + new QLabel(i18n("Add something here"), this); +} +#include "pref.moc" |