summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/zerowidgets.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/zerowidgets.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/zerowidgets.cpp')
-rw-r--r--kregexpeditor/zerowidgets.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kregexpeditor/zerowidgets.cpp b/kregexpeditor/zerowidgets.cpp
index 94a15d5..f9de296 100644
--- a/kregexpeditor/zerowidgets.cpp
+++ b/kregexpeditor/zerowidgets.cpp
@@ -25,13 +25,13 @@
#include "zerowidgets.h"
#include "dotregexp.h"
#include "positionregexp.h"
-#include <qpainter.h>
+#include <tqpainter.h>
#include "myfontmetrics.h"
//--------------------------------------------------------------------------------
// ZeroWidget
//--------------------------------------------------------------------------------
-ZeroWidget::ZeroWidget(QString txt, RegExpEditorWindow* editorWindow,
- QWidget *parent, const char *name)
+ZeroWidget::ZeroWidget(TQString txt, RegExpEditorWindow* editorWindow,
+ TQWidget *parent, const char *name)
: RegExpWidget(editorWindow, parent, name ? name : "ZeroWidget" )
{
_text = txt;
@@ -42,21 +42,21 @@ void ZeroWidget::addNewChild(DragAccepter *, RegExpWidget *)
qFatal("No children should be added to this widget!");
}
-QSize ZeroWidget::sizeHint() const
+TQSize ZeroWidget::sizeHint() const
{
- QFontMetrics metrics = fontMetrics();
+ TQFontMetrics metrics = fontMetrics();
_textSize = HackCalculateFontSize( metrics, _text );
// _textSize = metrics.size(0,_text);
- _boxSize = QSize(_textSize.width() + 2*space, _textSize.height() + 2 *space);
+ _boxSize = TQSize(_textSize.width() + 2*space, _textSize.height() + 2 *space);
return _boxSize;
}
-void ZeroWidget::paintEvent( QPaintEvent *e)
+void ZeroWidget::paintEvent( TQPaintEvent *e)
{
// So what is my Size?
- QSize mySize = sizeHint();
+ TQSize mySize = sizeHint();
- QPainter painter(this);
+ TQPainter painter(this);
drawPossibleSelection( painter, mySize);
// Write the text and the rectangle
@@ -70,7 +70,7 @@ void ZeroWidget::paintEvent( QPaintEvent *e)
//--------------------------------------------------------------------------------
// AnyCharWidget
//--------------------------------------------------------------------------------
-AnyCharWidget::AnyCharWidget(RegExpEditorWindow* editorWindow, QWidget *parent,
+AnyCharWidget::AnyCharWidget(RegExpEditorWindow* editorWindow, TQWidget *parent,
const char *name)
: ZeroWidget(i18n("Any\nCharacter"), editorWindow, parent,
name ? name : "AnyCharWidget")
@@ -86,7 +86,7 @@ RegExp* AnyCharWidget::regExp() const
//--------------------------------------------------------------------------------
// BegLineWidget
//--------------------------------------------------------------------------------
-BegLineWidget::BegLineWidget(RegExpEditorWindow* editorWindow, QWidget *parent,
+BegLineWidget::BegLineWidget(RegExpEditorWindow* editorWindow, TQWidget *parent,
const char *name)
: ZeroWidget(i18n("Line\nStart"), editorWindow, parent,
name ? name : "BegLineWidget")
@@ -102,7 +102,7 @@ RegExp* BegLineWidget::regExp() const
//--------------------------------------------------------------------------------
// EndLineWidget
//--------------------------------------------------------------------------------
-EndLineWidget::EndLineWidget(RegExpEditorWindow* editorWindow, QWidget *parent,
+EndLineWidget::EndLineWidget(RegExpEditorWindow* editorWindow, TQWidget *parent,
const char *name)
: ZeroWidget(i18n("Line\nEnd"), editorWindow, parent, name)
{
@@ -116,7 +116,7 @@ RegExp* EndLineWidget::regExp() const
//--------------------------------------------------------------------------------
// WordBoundaryWidget
//--------------------------------------------------------------------------------
-WordBoundaryWidget::WordBoundaryWidget(RegExpEditorWindow* editorWindow, QWidget *parent,
+WordBoundaryWidget::WordBoundaryWidget(RegExpEditorWindow* editorWindow, TQWidget *parent,
const char *name)
: ZeroWidget(i18n("Word\nBoundary"), editorWindow, parent,
name ? name : "WordBoundaryWidget" )
@@ -131,7 +131,7 @@ RegExp* WordBoundaryWidget::regExp() const
//--------------------------------------------------------------------------------
// NonWordBoundaryWidget
//--------------------------------------------------------------------------------
-NonWordBoundaryWidget::NonWordBoundaryWidget(RegExpEditorWindow* editorWindow, QWidget *parent,
+NonWordBoundaryWidget::NonWordBoundaryWidget(RegExpEditorWindow* editorWindow, TQWidget *parent,
const char *name)
: ZeroWidget(i18n("Non-word\nBoundary"), editorWindow, parent,
name ? name : "NonWordBoundaryWidget" )