author | sandman <sandman> | 2002-09-12 01:54:38 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-12 01:54:38 (UTC) |
commit | 5443baf95c52ed0ead459fec48cb877d71a0e427 (patch) (unidiff) | |
tree | 80718baad2fda769200ef442bcd7bf4e86ba9c82 /core/settings/launcher/launchersettings.cpp | |
parent | b35aa16e051554783b30f1551ad7677e382cc823 (diff) | |
download | opie-5443baf95c52ed0ead459fec48cb877d71a0e427.zip opie-5443baf95c52ed0ead459fec48cb877d71a0e427.tar.gz opie-5443baf95c52ed0ead459fec48cb877d71a0e427.tar.bz2 |
New launcher/taskbar settings (merge from QPE 1.6 - reworked)
Diffstat (limited to 'core/settings/launcher/launchersettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/launcher/launchersettings.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/core/settings/launcher/launchersettings.cpp b/core/settings/launcher/launchersettings.cpp new file mode 100644 index 0000000..b794519 --- a/dev/null +++ b/core/settings/launcher/launchersettings.cpp | |||
@@ -0,0 +1,39 @@ | |||
1 | |||
2 | #include <qlayout.h> | ||
3 | |||
4 | #include <opie/otabwidget.h> | ||
5 | |||
6 | #include "launchersettings.h" | ||
7 | #include "tabssettings.h" | ||
8 | #include "taskbarsettings.h" | ||
9 | |||
10 | |||
11 | LauncherSettings::LauncherSettings ( ) : QDialog ( 0, "LauncherSettings", false ) | ||
12 | { | ||
13 | setCaption ( tr( "Launcher Settings" )); | ||
14 | |||
15 | QVBoxLayout *lay = new QVBoxLayout ( this, 4, 4 ); | ||
16 | |||
17 | OTabWidget *tw = new OTabWidget ( this, "otab" ); | ||
18 | lay-> addWidget ( tw ); | ||
19 | |||
20 | m_tabs = new TabsSettings ( tw ); | ||
21 | m_taskbar = new TaskbarSettings ( tw ); | ||
22 | |||
23 | tw-> addTab ( m_taskbar, "appearance/styletabicon.png", tr( "Taskbar" )); | ||
24 | tw-> addTab ( m_tabs, "appearance/styletabicon.png", tr( "Tabs" )); | ||
25 | } | ||
26 | |||
27 | void LauncherSettings::accept ( ) | ||
28 | { | ||
29 | m_taskbar-> accept ( ); | ||
30 | m_tabs-> accept ( ); | ||
31 | |||
32 | QDialog::accept ( ); | ||
33 | } | ||
34 | |||
35 | void LauncherSettings::done ( int r ) | ||
36 | { | ||
37 | QDialog::done ( r ); | ||
38 | close ( ); | ||
39 | } | ||