summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console
authorjosef <josef>2002-10-26 14:23:48 (UTC)
committer josef <josef>2002-10-26 14:23:48 (UTC)
commit2bd985c4f5a5c27260e6057a1ca8a2e0e586acbb (patch) (side-by-side diff)
treef31bed6961ee2cea8b0412adc80fc5c60cadaefb /noncore/apps/opie-console
parent2de7003cd700685e0c3696d51656f54d54c81f43 (diff)
downloadopie-2bd985c4f5a5c27260e6057a1ca8a2e0e586acbb.zip
opie-2bd985c4f5a5c27260e6057a1ca8a2e0e586acbb.tar.gz
opie-2bd985c4f5a5c27260e6057a1ca8a2e0e586acbb.tar.bz2
- reduce number of lines correctly (fixes problems with small fonts)
- when using fullscreen, move corner widget into lower right corner :)
Diffstat (limited to 'noncore/apps/opie-console') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/TEWidget.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/TEWidget.cpp b/noncore/apps/opie-console/TEWidget.cpp
index 2db214c..d1ff85e 100644
--- a/noncore/apps/opie-console/TEWidget.cpp
+++ b/noncore/apps/opie-console/TEWidget.cpp
@@ -1155,12 +1155,16 @@ void TEWidget::calcGeometry()
if(vcolumns == 0) showhscrollbar = 0;
if(showhscrollbar == 1) hwidth = QApplication::style().scrollBarExtent().width();
scrollbar->resize(QApplication::style().scrollBarExtent().width(),
contentsRect().height() - hwidth);
+ if(!showhscrollbar) cornerButton()->move(0, 0);
+ else cornerButton()->move(contentsRect().width() - hwidth, contentsRect().height() - hwidth);
+
+
if(showhscrollbar == 1)
{
hscrollbar->resize(contentsRect().width() - hwidth, hwidth);
hscrollbar->setRange(0, 40);
QPoint p = contentsRect().bottomLeft();
@@ -1204,14 +1208,14 @@ void TEWidget::calcGeometry()
//FIXME: support 'rounding' styles
lines = ( contentsRect().height() - 2 * rimY ) / font_h;
bY = (contentsRect().height() - (lines *font_h)) / 2;
if(showhscrollbar == 1)
{
- //bY = bY - 10;
- lines = lines - 1;
+ lines = lines - (hwidth / font_h) - 1;
+ if(lines < 1) lines = 1;
}
}
void TEWidget::makeImage()
//FIXME: rename 'calcGeometry?
{