summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/TEWidget.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/TEWidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/TEWidget.cpp25
1 files changed, 15 insertions, 10 deletions
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
@@ -311,34 +311,39 @@ TEWidget::TEWidget(QWidget *parent, const char *name) : QFrame(parent,name)
311 311
312 hscrollbar = new QScrollBar( Qt::Horizontal, this ); 312 hscrollbar = new QScrollBar( Qt::Horizontal, this );
313 hscrollbar->setCursor( arrowCursor ); 313 hscrollbar->setCursor( arrowCursor );
314 connect(hscrollbar, SIGNAL(valueChanged(int)), this, SLOT(hscrollChanged(int))); 314 connect(hscrollbar, SIGNAL(valueChanged(int)), this, SLOT(hscrollChanged(int)));
315 315
316 m_cornerButton = new QPushButton( this ); 316 m_cornerButton = new QPushButton( this );
317 m_cornerButton->setPixmap( QPixmap( (const char**)menu_xpm ) ); 317 m_cornerButton->setPixmap( QPixmap( (const char**)menu_xpm ) );
318 m_cornerButton->setMaximumSize( 14, 14 ); 318 m_cornerButton->setMaximumSize( 14, 14 );
319 m_cornerButton->hide(); 319 m_cornerButton->hide();
320 320
321 Config cfg("Konsole"); 321 Config cfg("Konsole");
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 scrollLoc = SCRRIGHT; 331 Config qpecfg ("qpe");
332 break; 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 {
336 scrollLoc = SCRRIGHT;
337 }
333 }; 338 };
334 339
335 blinkT = new QTimer(this); 340 blinkT = new QTimer(this);
336 connect(blinkT, SIGNAL(timeout()), this, SLOT(blinkEvent())); 341 connect(blinkT, SIGNAL(timeout()), this, SLOT(blinkEvent()));
337 // blinking = FALSE; 342 // blinking = FALSE;
338 blinking = TRUE; 343 blinking = TRUE;
339 344
340 resizing = FALSE; 345 resizing = FALSE;
341 actSel = 0; 346 actSel = 0;
342 image = 0; 347 image = 0;
343 lines = 1; 348 lines = 1;
344 columns = 1; 349 columns = 1;