diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/lookaheadwidget.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-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.cpp | 20 |
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 ); } |