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 | |||
@@ -39,7 +39,17 @@ PwMViewStyle_1::PwMViewStyle_1(PwMView *view) | |||
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 |