author | llornkcor <llornkcor> | 2002-11-08 13:40:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-08 13:40:06 (UTC) |
commit | 2aa75fdaeb219fffef86af1a2ca0aac0ac6731ce (patch) (side-by-side diff) | |
tree | 568d62e648000ac4d8f0c909a0157af03de04298 | |
parent | ada5be67fec81ed8845a6f358bbf7e3b181d417e (diff) | |
download | opie-2aa75fdaeb219fffef86af1a2ca0aac0ac6731ce.zip opie-2aa75fdaeb219fffef86af1a2ca0aac0ac6731ce.tar.gz opie-2aa75fdaeb219fffef86af1a2ca0aac0ac6731ce.tar.bz2 |
change horz scroll position for when using left scroll
-rw-r--r-- | core/apps/embeddedkonsole/TEWidget.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/apps/embeddedkonsole/TEWidget.cpp b/core/apps/embeddedkonsole/TEWidget.cpp index c220e11..23720cd 100644 --- a/core/apps/embeddedkonsole/TEWidget.cpp +++ b/core/apps/embeddedkonsole/TEWidget.cpp @@ -1188,33 +1188,37 @@ void TEWidget::calcGeometry() if(showhscrollbar) blX = -hposition * font_w; brX = blX; scrollbar->move(contentsRect().topRight() - QPoint(scrollbar->width()-1,0)); scrollbar->show(); break; } //FIXME: support 'rounding' styles lines = ( contentsRect().height() - 2 * rimY ) / font_h; bY = (contentsRect().height() - (lines *font_h)) / 2; if(showhscrollbar == 1) { hScrollbar->resize(contentsRect().width() - hwidth, hwidth); hScrollbar->setRange(0, vcolumns - dcolumns); QPoint p = contentsRect().bottomLeft(); - hScrollbar->move(QPoint(p.x(), p.y() - hwidth)); + if(scrollLoc == SCRLEFT) + hScrollbar->move(QPoint(p.x()+hwidth, p.y() - hwidth)); + else + hScrollbar->move(QPoint(p.x(), p.y() - hwidth)); + hScrollbar->show(); } else hScrollbar->hide(); if(showhscrollbar == 1) { lines = lines - (hwidth / font_h) - 1; if(lines < 1) lines = 1; } //FIXME: support 'rounding' styles } void TEWidget::makeImage() //FIXME: rename 'calcGeometry? { calcGeometry(); image = (ca*) malloc(lines*columns*sizeof(ca)); |