diff options
Diffstat (limited to 'ksirc/ahistlineedit.cpp')
-rw-r--r-- | ksirc/ahistlineedit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ksirc/ahistlineedit.cpp b/ksirc/ahistlineedit.cpp index 4928155c..5477cf5a 100644 --- a/ksirc/ahistlineedit.cpp +++ b/ksirc/ahistlineedit.cpp @@ -116,9 +116,9 @@ void aHistLineEdit::slotMaybeResize() // int h = metrics.height() * lines(); int h = metrics.lineSpacing() * lines()+8; // only grow if we are less than 1/4 the size of the toplevel - if(h > (tqtopLevelWidget()->height() >> 2)) { - if(this != tqtopLevelWidget()) { - h = tqtopLevelWidget()->height() >> 2; + if(h > (topLevelWidget()->height() >> 2)) { + if(this != topLevelWidget()) { + h = topLevelWidget()->height() >> 2; setVScrollBarMode( Auto ); } } @@ -131,7 +131,7 @@ void aHistLineEdit::slotMaybeResize() s.setHeight(h); resize(s); setFixedHeight( h ); - TQLayout *l = tqtopLevelWidget()->tqlayout(); + TQLayout *l = topLevelWidget()->tqlayout(); if(l){ l->tqinvalidate(); l->activate(); |