summaryrefslogtreecommitdiffstats
path: root/ksirc/ahistlineedit.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:34 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:34 -0600
commit83677e35509b4dafac63b76995652bdf3b49f209 (patch)
tree591f1dc22278addb439726c42896376b17bb42bd /ksirc/ahistlineedit.cpp
parent808e453c56036211f57482ed847d54aca01bba68 (diff)
downloadtdenetwork-83677e35509b4dafac63b76995652bdf3b49f209.tar.gz
tdenetwork-83677e35509b4dafac63b76995652bdf3b49f209.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 808e453c56036211f57482ed847d54aca01bba68.
Diffstat (limited to 'ksirc/ahistlineedit.cpp')
-rw-r--r--ksirc/ahistlineedit.cpp28
1 files changed, 14 insertions, 14 deletions
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 <textedit.h>
-#include <layout.h>
+#include <tqtextedit.h>
+#include <tqlayout.h>
#include <tqapplication.h>
-#include <clipboard.h>
+#include <tqclipboard.h>
#include <tqpen.h>
#include <tqpainter.h>
#include <kdebug.h>
@@ -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);