From 83677e35509b4dafac63b76995652bdf3b49f209 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:59:34 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 808e453c56036211f57482ed847d54aca01bba68. --- ksirc/ahistlineedit.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'ksirc/ahistlineedit.cpp') diff --git a/ksirc/ahistlineedit.cpp b/ksirc/ahistlineedit.cpp index 9e538672..4928155c 100644 --- a/ksirc/ahistlineedit.cpp +++ b/ksirc/ahistlineedit.cpp @@ -43,10 +43,10 @@ #include "ahistlineedit.h" #include "colorpicker.h" #include "ksopts.h" -#include -#include +#include +#include #include -#include +#include #include #include #include @@ -102,13 +102,13 @@ void aHistLineEdit::slotMaybeResize() if(text().length() > IRC_SAFE_MAX_LINE){ if(m_drawrect == false){ m_drawrect = true; - repaint(); + tqrepaint(); } } else { if(m_drawrect == true){ m_drawrect = false; - repaint(); + tqrepaint(); } } @@ -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 > (topLevelWidget()->height() >> 2)) { - if(this != topLevelWidget()) { - h = topLevelWidget()->height() >> 2; + if(h > (tqtopLevelWidget()->height() >> 2)) { + if(this != tqtopLevelWidget()) { + h = tqtopLevelWidget()->height() >> 2; setVScrollBarMode( Auto ); } } @@ -131,9 +131,9 @@ void aHistLineEdit::slotMaybeResize() s.setHeight(h); resize(s); setFixedHeight( h ); - TQLayout *l = topLevelWidget()->layout(); + TQLayout *l = tqtopLevelWidget()->tqlayout(); if(l){ - l->invalidate(); + l->tqinvalidate(); l->activate(); } emit resized(); @@ -352,7 +352,7 @@ void aHistLineEdit::mousePressEvent ( TQMouseEvent *e ) { if(e->button() == MidButton){ /* - * emit pasteText(TQApplication::clipboard()->text(TQClipboard::Selection)); + * emit pasteText(TQApplication::tqclipboard()->text(TQClipboard::Selection)); */ } else{ @@ -381,10 +381,10 @@ void aHistLineEdit::paste() { /* we let the top level take it */ if(ksopts->oneLineEntry) { - emit pasteText(TQApplication::clipboard()->text(TQClipboard::Selection)); + emit pasteText(TQApplication::tqclipboard()->text(TQClipboard::Selection)); } else { - TQString paste = TQApplication::clipboard()->text(TQClipboard::Selection); + TQString paste = TQApplication::tqclipboard()->text(TQClipboard::Selection); paste.replace("\n", " ~ "); insert(paste); } @@ -399,7 +399,7 @@ void aHistLineEdit::paintEvent ( TQPaintEvent *p ) TQPen pen = paint.pen(); pen.setWidth(5); pen.setStyle(Qt::SolidLine); - pen.setColor(palette().active().highlight()); + pen.setColor(tqpalette().active().highlight()); paint.setPen(pen); TQRect r = frameRect(); paint.drawRect(r); -- cgit v1.2.1