All pastes #25842 Raw Edit

Unnamed

public text v1 · immutable
#25842 ·published 2005-10-18 13:33 UTC
rendered paste body
Index: TEWidget.cpp
===================================================================
RCS file: /cvs/opie/noncore/apps/opie-console/TEWidget.cpp,v
retrieving revision 1.13
diff -u -u -r1.13 TEWidget.cpp
--- TEWidget.cpp        21 Jan 2005 19:56:17 -0000      1.13
+++ TEWidget.cpp        18 Oct 2005 13:38:53 -0000
@@ -320,16 +320,26 @@

   Config cfg("Konsole");
   cfg.setGroup("ScrollBar");
-  switch( cfg.readNumEntry("Position",2)){
-  case 0:
+  switch( cfg.readNumEntry("Position", -1)){
+  case SCRNONE:
       scrollLoc = SCRNONE;
       break;
-  case 1:
+  case SCRLEFT:
       scrollLoc = SCRLEFT;
       break;
-  case 2:
+  case SCRRIGHT:
       scrollLoc = SCRRIGHT;
       break;
+  default:
+  case -1:
+      Config qpecfg ("qpe");
+      qpecfg.setGroup("Appearance");
+      scrollLoc = cfg.readNumEntry("LeftHand", SCRRIGHT);
+      if(scrollLoc == SCRNONE)    // user set LeftHand in past and switched it off later
+      {
+         scrollLoc = SCRRIGHT;
+      }
+      break;
   };

   blinkT   = new QTimer(this);