summaryrefslogtreecommitdiffstats
path: root/ksirc/ahistlineedit.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:49:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:49:40 -0600
commit808e453c56036211f57482ed847d54aca01bba68 (patch)
tree75515d5768dea10d4fbe4cd772e0a89c1c4b3aa9 /ksirc/ahistlineedit.cpp
parentcd9b9ed7fd0ac8a75106148254aa58e2e5c04863 (diff)
downloadtdenetwork-808e453c56036211f57482ed847d54aca01bba68.tar.gz
tdenetwork-808e453c56036211f57482ed847d54aca01bba68.zip
Rename a number of old tq methods that are no longer tq specific
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);