-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | noncore/apps/opie-console/TEWidget.cpp | 23 |
2 files changed, 15 insertions, 9 deletions
@@ -11,2 +11,3 @@ | |||
11 | * #1686 - opie-console lack UI setting for switching scrollbar (hrw) | 11 | * #1686 - opie-console lack UI setting for switching scrollbar (hrw) |
12 | * #1647 - Opie-console doesn't respect scroll-bar on left side (hrw) | ||
12 | * #1624 - Button settngs changes are applied only after restart (hrw) | 13 | * #1624 - Button settngs changes are applied only after restart (hrw) |
diff --git a/noncore/apps/opie-console/TEWidget.cpp b/noncore/apps/opie-console/TEWidget.cpp index 1199e4f..117f6dd 100644 --- a/noncore/apps/opie-console/TEWidget.cpp +++ b/noncore/apps/opie-console/TEWidget.cpp | |||
@@ -322,12 +322,17 @@ TEWidget::TEWidget(QWidget *parent, const char *name) : QFrame(parent,name) | |||
322 | cfg.setGroup("ScrollBar"); | 322 | cfg.setGroup("ScrollBar"); |
323 | switch( cfg.readNumEntry("Position",2)){ | 323 | |
324 | case 0: | 324 | scrollLoc = cfg.readNumEntry("Position", -1); |
325 | scrollLoc = SCRNONE; | 325 | |
326 | break; | 326 | // bugfix for #1647 |
327 | case 1: | 327 | // if user set 'show scrollbar on left' then let it be on left |
328 | scrollLoc = SCRLEFT; | 328 | // but only if it is not set in opie-console itself |
329 | break; | 329 | if(scrollLoc == -1) |
330 | case 2: | 330 | { |
331 | Config qpecfg ("qpe"); | ||
332 | qpecfg.setGroup("Appearance"); | ||
333 | scrollLoc = qpecfg.readNumEntry("LeftHand", SCRRIGHT); | ||
334 | if(scrollLoc == 0) // user set LeftHand in past and switched it off later | ||
335 | { | ||
331 | scrollLoc = SCRRIGHT; | 336 | scrollLoc = SCRRIGHT; |
332 | break; | 337 | } |
333 | }; | 338 | }; |