summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/lookaheadwidget.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/lookaheadwidget.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/lookaheadwidget.cpp')
-rw-r--r--kregexpeditor/lookaheadwidget.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kregexpeditor/lookaheadwidget.cpp b/kregexpeditor/lookaheadwidget.cpp
index b724a3c..aa9f873 100644
--- a/kregexpeditor/lookaheadwidget.cpp
+++ b/kregexpeditor/lookaheadwidget.cpp
@@ -26,9 +26,9 @@
#include "lookaheadwidget.h"
#include "lookaheadregexp.h"
#include "concwidget.h"
-#include <qpainter.h>
+#include <tqpainter.h>
-LookAheadWidget::LookAheadWidget( RegExpEditorWindow* editorWindow, RegExpType tp, QWidget* parent, const char* name )
+LookAheadWidget::LookAheadWidget( RegExpEditorWindow* editorWindow, RegExpType tp, TQWidget* parent, const char* name )
:SingleContainerWidget(editorWindow, parent, name ? name : "LookAheadWidget" ), _tp(tp)
{
_child = new ConcWidget( editorWindow, this );
@@ -36,7 +36,7 @@ LookAheadWidget::LookAheadWidget( RegExpEditorWindow* editorWindow, RegExpType t
}
LookAheadWidget::LookAheadWidget( LookAheadRegExp* regexp, RegExpEditorWindow* editorWindow, RegExpType tp,
- QWidget* parent, const char* name )
+ TQWidget* parent, const char* name )
:SingleContainerWidget( editorWindow, parent, name ? name : "LookAheadWidget" ), _tp(tp)
{
RegExpWidget* child = WidgetFactory::createWidget( regexp->child(), editorWindow, this );
@@ -60,24 +60,24 @@ RegExp* LookAheadWidget::regExp() const
_child->regExp() );
}
-QSize LookAheadWidget::sizeHint() const
+TQSize LookAheadWidget::sizeHint() const
{
// TODO: Merge with RepeatWidget::sizeHint
- QFontMetrics metrics = fontMetrics();
+ TQFontMetrics metrics = fontMetrics();
_textSize = metrics.size( 0, _text );
_childSize = _child->sizeHint();
int height = _textSize.height() + bdSize + _childSize.height() + bdSize + 2*pw;
int width = 2 * pw + QMAX(_childSize.width(), 4*bdSize + _textSize.width());
- return QSize(width,height);
+ return TQSize(width,height);
}
-void LookAheadWidget::paintEvent( QPaintEvent *e )
+void LookAheadWidget::paintEvent( TQPaintEvent *e )
{
// TODO: Merge with RepeatWidget::paintEvent
- QSize mySize = sizeHint();
- QPainter painter(this);
+ TQSize mySize = sizeHint();
+ TQPainter painter(this);
drawPossibleSelection( painter, mySize );
@@ -104,7 +104,7 @@ void LookAheadWidget::paintEvent( QPaintEvent *e )
SingleContainerWidget::paintEvent(e);
}
-RegExpWidget* LookAheadWidget::findWidgetToEdit( QPoint globalPos )
+RegExpWidget* LookAheadWidget::findWidgetToEdit( TQPoint globalPos )
{
return _child->findWidgetToEdit( globalPos );
}