author | ulf69 <ulf69> | 2004-11-07 02:23:23 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-11-07 02:23:23 (UTC) |
commit | dcb3a171bca38934185de67e378956e6fd044f17 (patch) (unidiff) | |
tree | 6b1d8499823d2ec0db0e932ee9f69d95f9970464 | |
parent | 31c3fc0e0673b9403fb4ef4a9836305d1d49ff83 (diff) | |
download | kdepimpi-dcb3a171bca38934185de67e378956e6fd044f17.zip kdepimpi-dcb3a171bca38934185de67e378956e6fd044f17.tar.gz kdepimpi-dcb3a171bca38934185de67e378956e6fd044f17.tar.bz2 |
view category view for 5500 models on top and not at the left
-rw-r--r-- | pwmanager/pwmanager/pwmviewstyle_1.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pwmanager/pwmanager/pwmviewstyle_1.cpp b/pwmanager/pwmanager/pwmviewstyle_1.cpp index 6b9def3..27ad40e 100644 --- a/pwmanager/pwmanager/pwmviewstyle_1.cpp +++ b/pwmanager/pwmanager/pwmviewstyle_1.cpp | |||
@@ -25,35 +25,45 @@ | |||
25 | #include <klocale.h> | 25 | #include <klocale.h> |
26 | #include "pwmprefs.h" | 26 | #include "pwmprefs.h" |
27 | 27 | ||
28 | #ifndef DESKTOP_VERSION | 28 | #ifndef DESKTOP_VERSION |
29 | #include <qpe/qpeapplication.h> | 29 | #include <qpe/qpeapplication.h> |
30 | #else | 30 | #else |
31 | #include <qapplication.h> | 31 | #include <qapplication.h> |
32 | #endif | 32 | #endif |
33 | #define INITIAL_CATEGORIES_WIDTH100 | 33 | #define INITIAL_CATEGORIES_WIDTH100 |
34 | 34 | ||
35 | PwMViewStyle_1::PwMViewStyle_1(PwMView *view) | 35 | PwMViewStyle_1::PwMViewStyle_1(PwMView *view) |
36 | : QObject() | 36 | : QObject() |
37 | { | 37 | { |
38 | #ifndef PWM_EMBEDDED | 38 | #ifndef PWM_EMBEDDED |
39 | splitter = new QSplitter(view); | 39 | splitter = new QSplitter(view); |
40 | #else | 40 | #else |
41 | splitter = new KDGanttMinimizeSplitter( Qt::Horizontal, view); | 41 | if ( QApplication::desktop()->width() > 240 ) { |
42 | splitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Left ); | 42 | splitter = new KDGanttMinimizeSplitter( Qt::Horizontal, view); |
43 | 43 | splitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Left ); | |
44 | // topLayout = new QHBoxLayout( this ); | ||
45 | // mMiniSplitter = new KDGanttMinimizeSplitter( Qt::Horizontal, this); | ||
46 | // mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Right ); | ||
47 | } else { | ||
48 | splitter = new KDGanttMinimizeSplitter( Qt::Vertical, view); | ||
49 | splitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); | ||
50 | // topLayout = new QHBoxLayout( this ); | ||
51 | // mMiniSplitter = new KDGanttMinimizeSplitter( Qt::Vertical, this); | ||
52 | // mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Down ); | ||
53 | } | ||
44 | //US topLayout->addWidget(mMiniSplitter ); | 54 | //US topLayout->addWidget(mMiniSplitter ); |
45 | #endif | 55 | #endif |
46 | 56 | ||
47 | vbox1 = new QVBox(splitter); | 57 | vbox1 = new QVBox(splitter); |
48 | categoriesTitle = new QLabel(vbox1); | 58 | categoriesTitle = new QLabel(vbox1); |
49 | categoriesList = new QListBox(vbox1); | 59 | categoriesList = new QListBox(vbox1); |
50 | #ifndef PWM_EMBEDDED | 60 | #ifndef PWM_EMBEDDED |
51 | splitter2 = new QSplitter(splitter); | 61 | splitter2 = new QSplitter(splitter); |
52 | splitter2->setOrientation(Qt::Vertical); | 62 | splitter2->setOrientation(Qt::Vertical); |
53 | #else | 63 | #else |
54 | splitter2 = new KDGanttMinimizeSplitter( Qt::Vertical, splitter); | 64 | splitter2 = new KDGanttMinimizeSplitter( Qt::Vertical, splitter); |
55 | splitter2->setMinimizeDirection ( KDGanttMinimizeSplitter::Down ); | 65 | splitter2->setMinimizeDirection ( KDGanttMinimizeSplitter::Down ); |
56 | 66 | ||
57 | //US topLayout->addWidget(mMiniSplitter ); | 67 | //US topLayout->addWidget(mMiniSplitter ); |
58 | #endif | 68 | #endif |
59 | lv = new ListViewPwM(splitter2); | 69 | lv = new ListViewPwM(splitter2); |