From 5f5ee2367157176ed223b86343eb0a9e4022e020 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:52:55 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kregexpeditor/lookaheadwidget.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kregexpeditor/lookaheadwidget.cpp') 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 +#include -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 ); } -- cgit v1.2.1