summaryrefslogtreecommitdiffstats
path: root/ksirc/ahistlineedit.cpp
diff options
context:
space:
mode:
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 4928155c..9e538672 100644
--- a/ksirc/ahistlineedit.cpp
+++ b/ksirc/ahistlineedit.cpp
@@ -43,10 +43,10 @@
#include "ahistlineedit.h"
#include "colorpicker.h"
#include "ksopts.h"
-#include <tqtextedit.h>
-#include <tqlayout.h>
+#include <textedit.h>
+#include <layout.h>
#include <tqapplication.h>
-#include <tqclipboard.h>
+#include <clipboard.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;
- tqrepaint();
+ repaint();
}
}
else {
if(m_drawrect == true){
m_drawrect = false;
- tqrepaint();
+ repaint();
}
}
@@ -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,9 +131,9 @@ void aHistLineEdit::slotMaybeResize()
s.setHeight(h);
resize(s);
setFixedHeight( h );
- TQLayout *l = tqtopLevelWidget()->tqlayout();
+ TQLayout *l = topLevelWidget()->layout();
if(l){
- l->tqinvalidate();
+ l->invalidate();
l->activate();
}
emit resized();
@@ -352,7 +352,7 @@ void aHistLineEdit::mousePressEvent ( TQMouseEvent *e )
{
if(e->button() == MidButton){
/*
- * emit pasteText(TQApplication::tqclipboard()->text(TQClipboard::Selection));
+ * emit pasteText(TQApplication::clipboard()->text(TQClipboard::Selection));
*/
}
else{
@@ -381,10 +381,10 @@ void aHistLineEdit::paste()
{
/* we let the top level take it */
if(ksopts->oneLineEntry) {
- emit pasteText(TQApplication::tqclipboard()->text(TQClipboard::Selection));
+ emit pasteText(TQApplication::clipboard()->text(TQClipboard::Selection));
}
else {
- TQString paste = TQApplication::tqclipboard()->text(TQClipboard::Selection);
+ TQString paste = TQApplication::clipboard()->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(tqpalette().active().highlight());
+ pen.setColor(palette().active().highlight());
paint.setPen(pen);
TQRect r = frameRect();
paint.drawRect(r);