Diffstat (limited to 'core/settings/launcher/launchersettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/launcher/launchersettings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/settings/launcher/launchersettings.cpp b/core/settings/launcher/launchersettings.cpp index cb6e98a..3982194 100644 --- a/core/settings/launcher/launchersettings.cpp +++ b/core/settings/launcher/launchersettings.cpp | |||
@@ -26,48 +26,51 @@ | |||
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include <qlayout.h> | 29 | #include <qlayout.h> |
30 | #include <qapplication.h> | 30 | #include <qapplication.h> |
31 | 31 | ||
32 | #include <opie/otabwidget.h> | 32 | #include <opie/otabwidget.h> |
33 | 33 | ||
34 | #include "launchersettings.h" | 34 | #include "launchersettings.h" |
35 | #include "tabssettings.h" | 35 | #include "tabssettings.h" |
36 | #include "menusettings.h" | 36 | #include "menusettings.h" |
37 | #include "taskbarsettings.h" | 37 | #include "taskbarsettings.h" |
38 | 38 | #include "inputmethodsettings.h" | |
39 | 39 | ||
40 | LauncherSettings::LauncherSettings ( ) : QDialog ( 0, "LauncherSettings", false, WStyle_ContextHelp ) | 40 | LauncherSettings::LauncherSettings ( ) : QDialog ( 0, "LauncherSettings", false, WStyle_ContextHelp ) |
41 | { | 41 | { |
42 | setCaption ( tr( "Launcher Settings" )); | 42 | setCaption ( tr( "Launcher Settings" )); |
43 | 43 | ||
44 | QVBoxLayout *lay = new QVBoxLayout ( this, 4, 4 ); | 44 | QVBoxLayout *lay = new QVBoxLayout ( this, 4, 4 ); |
45 | 45 | ||
46 | OTabWidget *tw = new OTabWidget ( this, "otab" ); | 46 | OTabWidget *tw = new OTabWidget ( this, "otab" ); |
47 | lay-> addWidget ( tw ); | 47 | lay-> addWidget ( tw ); |
48 | 48 | ||
49 | m_tabs = new TabsSettings ( tw ); | 49 | m_tabs = new TabsSettings ( tw ); |
50 | m_taskbar = new TaskbarSettings ( tw ); | 50 | m_taskbar = new TaskbarSettings ( tw ); |
51 | m_menu = new MenuSettings ( tw ); | 51 | m_menu = new MenuSettings ( tw ); |
52 | m_imethods = new InputMethodSettings ( tw ); | ||
52 | 53 | ||
53 | tw-> addTab ( m_taskbar, "wait", tr( "Taskbar" )); | 54 | tw-> addTab ( m_taskbar, "wait", tr( "Taskbar" )); |
54 | tw-> addTab ( m_menu, "go", tr( "O-Menu" )); | 55 | tw-> addTab ( m_menu, "go", tr( "O-Menu" )); |
55 | tw-> addTab ( m_tabs, "launchersettings/tabstab.png", tr( "Tabs" )); | 56 | tw-> addTab ( m_tabs, "launchersettings/tabstab.png", tr( "Tabs" )); |
57 | tw-> addTab ( m_imethods, "launchersettings/inputmethod.png", tr( "InputMethods" )); | ||
56 | 58 | ||
57 | tw-> setCurrentTab ( m_taskbar ); | 59 | tw-> setCurrentTab ( m_taskbar ); |
58 | } | 60 | } |
59 | 61 | ||
60 | void LauncherSettings::accept ( ) | 62 | void LauncherSettings::accept ( ) |
61 | { | 63 | { |
62 | m_taskbar-> accept ( ); | 64 | m_taskbar-> accept ( ); |
63 | m_menu-> accept ( ); | 65 | m_menu-> accept ( ); |
64 | m_tabs-> accept ( ); | 66 | m_tabs-> accept ( ); |
67 | m_imethods-> accept ( ); | ||
65 | 68 | ||
66 | QDialog::accept ( ); | 69 | QDialog::accept ( ); |
67 | } | 70 | } |
68 | 71 | ||
69 | void LauncherSettings::done ( int r ) | 72 | void LauncherSettings::done ( int r ) |
70 | { | 73 | { |
71 | QDialog::done ( r ); | 74 | QDialog::done ( r ); |
72 | close ( ); | 75 | close ( ); |
73 | } | 76 | } |