summaryrefslogtreecommitdiffabout
Side-by-side diff
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
@@ -38,9 +38,19 @@ PwMViewStyle_1::PwMViewStyle_1(PwMView *view)
#ifndef PWM_EMBEDDED
splitter = new QSplitter(view);
#else
- splitter = new KDGanttMinimizeSplitter( Qt::Horizontal, view);
- splitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Left );
-
+ if ( QApplication::desktop()->width() > 240 ) {
+ splitter = new KDGanttMinimizeSplitter( Qt::Horizontal, view);
+ splitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Left );
+ // topLayout = new QHBoxLayout( this );
+ // mMiniSplitter = new KDGanttMinimizeSplitter( Qt::Horizontal, this);
+ // mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Right );
+ } else {
+ splitter = new KDGanttMinimizeSplitter( Qt::Vertical, view);
+ splitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Up );
+ // topLayout = new QHBoxLayout( this );
+ // mMiniSplitter = new KDGanttMinimizeSplitter( Qt::Vertical, this);
+ // mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Down );
+ }
//US topLayout->addWidget(mMiniSplitter );
#endif