author | josef <josef> | 2002-10-26 14:23:48 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-26 14:23:48 (UTC) |
commit | 2bd985c4f5a5c27260e6057a1ca8a2e0e586acbb (patch) (unidiff) | |
tree | f31bed6961ee2cea8b0412adc80fc5c60cadaefb /noncore/apps/opie-console/TEWidget.cpp | |
parent | 2de7003cd700685e0c3696d51656f54d54c81f43 (diff) | |
download | opie-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/TEWidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/TEWidget.cpp | 8 |
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 | |||
@@ -1158,6 +1158,10 @@ void TEWidget::calcGeometry() | |||
1158 | scrollbar->resize(QApplication::style().scrollBarExtent().width(), | 1158 | scrollbar->resize(QApplication::style().scrollBarExtent().width(), |
1159 | contentsRect().height() - hwidth); | 1159 | contentsRect().height() - hwidth); |
1160 | 1160 | ||
1161 | if(!showhscrollbar) cornerButton()->move(0, 0); | ||
1162 | else cornerButton()->move(contentsRect().width() - hwidth, contentsRect().height() - hwidth); | ||
1163 | |||
1164 | |||
1161 | if(showhscrollbar == 1) | 1165 | if(showhscrollbar == 1) |
1162 | { | 1166 | { |
1163 | hscrollbar->resize(contentsRect().width() - hwidth, hwidth); | 1167 | hscrollbar->resize(contentsRect().width() - hwidth, hwidth); |
@@ -1207,8 +1211,8 @@ void TEWidget::calcGeometry() | |||
1207 | 1211 | ||
1208 | if(showhscrollbar == 1) | 1212 | if(showhscrollbar == 1) |
1209 | { | 1213 | { |
1210 | //bY = bY - 10; | 1214 | lines = lines - (hwidth / font_h) - 1; |
1211 | lines = lines - 1; | 1215 | if(lines < 1) lines = 1; |
1212 | } | 1216 | } |
1213 | } | 1217 | } |
1214 | 1218 | ||