summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwmviewstyle_1.cpp16
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
@@ -33,19 +33,29 @@
33 #define INITIAL_CATEGORIES_WIDTH100 33 #define INITIAL_CATEGORIES_WIDTH100
34 34
35PwMViewStyle_1::PwMViewStyle_1(PwMView *view) 35PwMViewStyle_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);