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/dragaccepter.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/dragaccepter.cpp')
-rw-r--r-- | kregexpeditor/dragaccepter.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kregexpeditor/dragaccepter.cpp b/kregexpeditor/dragaccepter.cpp index 0198e58..bbbf538 100644 --- a/kregexpeditor/dragaccepter.cpp +++ b/kregexpeditor/dragaccepter.cpp @@ -18,7 +18,7 @@ #include "dragaccepter.h" #include "concwidget.h" -#include <qpainter.h> +#include <tqpainter.h> DragAccepter::DragAccepter(RegExpEditorWindow* editorWindow, RegExpWidget *parent, const char *name) @@ -28,14 +28,14 @@ DragAccepter::DragAccepter(RegExpEditorWindow* editorWindow, RegExpWidget *paren setAcceptDrops(TRUE); } -QSize DragAccepter::sizeHint() const +TQSize DragAccepter::sizeHint() const { - return QSize(10,10); + return TQSize(10,10); } -void DragAccepter::paintEvent(QPaintEvent *e) +void DragAccepter::paintEvent(TQPaintEvent *e) { - QPainter painter(this); + TQPainter painter(this); drawPossibleSelection( painter, size() ); if ( _drawLine ) @@ -44,7 +44,7 @@ void DragAccepter::paintEvent(QPaintEvent *e) RegExpWidget::paintEvent(e); } -void DragAccepter::mousePressEvent ( QMouseEvent* event ) +void DragAccepter::mousePressEvent ( TQMouseEvent* event ) { if ( event->button() == RightButton ) { _editorWindow->showRMBMenu( _editorWindow->hasSelection() ); @@ -54,7 +54,7 @@ void DragAccepter::mousePressEvent ( QMouseEvent* event ) } } -void DragAccepter::mouseReleaseEvent( QMouseEvent* event ) +void DragAccepter::mouseReleaseEvent( TQMouseEvent* event ) { if ( _editorWindow->isPasteing() && event->button() == LeftButton ) { RegExp* regexp = _editorWindow->pasteData(); @@ -82,7 +82,7 @@ void DragAccepter::mouseReleaseEvent( QMouseEvent* event ) } else { RegExpWidget *child = WidgetFactory::createWidget( _editorWindow, - dynamic_cast<QWidget*>(parent()), + dynamic_cast<TQWidget*>(parent()), _editorWindow->insertType() ); if ( child ) { RegExpWidget *w = dynamic_cast<RegExpWidget*>(parent()); @@ -98,13 +98,13 @@ void DragAccepter::mouseReleaseEvent( QMouseEvent* event ) } -void DragAccepter::dragEnterEvent(QDragEnterEvent *event) +void DragAccepter::dragEnterEvent(TQDragEnterEvent *event) { bool selfDrag = ( event->source() && event->source()->topLevelWidget() == topLevelWidget() && _isSelected ); event->accept(RegExpWidgetDrag::canDecode( event ) && !selfDrag ); } -void DragAccepter::dropEvent(QDropEvent *event) +void DragAccepter::dropEvent(TQDropEvent *event) { // The widget will be reparent afterward or part of it will, so no need to give // it a parent here. @@ -119,7 +119,7 @@ void DragAccepter::dropEvent(QDropEvent *event) RegExpWidget *rew = dynamic_cast<RegExpWidget*>(parent()); if (rew) rew->addNewConcChild(this, elm); - QWidget *w = dynamic_cast<QWidget*>(parent()); + TQWidget *w = dynamic_cast<TQWidget*>(parent()); if (w) w->update(); _editorWindow->updateContent( this ); |