summaryrefslogtreecommitdiffstats
path: root/kregexpeditor
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-08 11:05:40 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-08 11:05:40 +0900
commit007026cdc4d51e217ce6317b87c0ff2b2d120c83 (patch)
treee44642c9aa2755473430d44da4e3ce6d7a892fc8 /kregexpeditor
parenta2da8d06203ef630594a41222c0c3a16bedb86c4 (diff)
downloadtdeutils-007026cdc4d51e217ce6317b87c0ff2b2d120c83.tar.gz
tdeutils-007026cdc4d51e217ce6317b87c0ff2b2d120c83.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kregexpeditor')
-rw-r--r--kregexpeditor/KMultiFormListBox/ccp.cpp2
-rw-r--r--kregexpeditor/compoundwidget.cpp4
-rw-r--r--kregexpeditor/concwidget.cpp2
-rw-r--r--kregexpeditor/dragaccepter.cpp6
-rw-r--r--kregexpeditor/kregexpeditorprivate.cpp8
-rw-r--r--kregexpeditor/regexpwidget.cpp4
6 files changed, 13 insertions, 13 deletions
diff --git a/kregexpeditor/KMultiFormListBox/ccp.cpp b/kregexpeditor/KMultiFormListBox/ccp.cpp
index 078ee7f..7b21f51 100644
--- a/kregexpeditor/KMultiFormListBox/ccp.cpp
+++ b/kregexpeditor/KMultiFormListBox/ccp.cpp
@@ -58,7 +58,7 @@ void CCP::install(TQObject *elm)
bool CCP::eventFilter(TQObject *, TQEvent *event)
{
if (event->type() != TQEvent::MouseButtonPress ||
- ((TQMouseEvent *) event)->button() != Qt::RightButton ||
+ ((TQMouseEvent *) event)->button() != TQt::RightButton ||
((TQMouseEvent *) event)->state() != TQEvent::ControlButton) {
return false;
}
diff --git a/kregexpeditor/compoundwidget.cpp b/kregexpeditor/compoundwidget.cpp
index 98f3975..c65e598 100644
--- a/kregexpeditor/compoundwidget.cpp
+++ b/kregexpeditor/compoundwidget.cpp
@@ -258,7 +258,7 @@ RegExp* CompoundWidget::regExp() const
void CompoundWidget::mousePressEvent( TQMouseEvent* event )
{
- if ( event->button() == Qt::LeftButton &&
+ if ( event->button() == TQt::LeftButton &&
TQRect( _pixmapPos, _pixmapSize ).contains( event->pos() ) ) {
// Skip otherwise we will never see the mouse release
// since it is eaten by Editor window.
@@ -269,7 +269,7 @@ void CompoundWidget::mousePressEvent( TQMouseEvent* event )
void CompoundWidget::mouseReleaseEvent( TQMouseEvent* event)
{
- if ( event->button() == Qt::LeftButton &&
+ if ( event->button() == TQt::LeftButton &&
TQRect( _pixmapPos, _pixmapSize ).contains( event->pos() ) ) {
_hidden = !_hidden;
_editorWindow->updateContent( 0 );
diff --git a/kregexpeditor/concwidget.cpp b/kregexpeditor/concwidget.cpp
index 900b09f..47753d4 100644
--- a/kregexpeditor/concwidget.cpp
+++ b/kregexpeditor/concwidget.cpp
@@ -189,7 +189,7 @@ void ConcWidget::paintEvent( TQPaintEvent *e)
void ConcWidget::mousePressEvent ( TQMouseEvent* event )
{
- if ( event->button() == Qt::RightButton ) {
+ if ( event->button() == TQt::RightButton ) {
_editorWindow->showRMBMenu( _editorWindow->hasSelection() );
}
else {
diff --git a/kregexpeditor/dragaccepter.cpp b/kregexpeditor/dragaccepter.cpp
index f336dbd..d361830 100644
--- a/kregexpeditor/dragaccepter.cpp
+++ b/kregexpeditor/dragaccepter.cpp
@@ -46,7 +46,7 @@ void DragAccepter::paintEvent(TQPaintEvent *e)
void DragAccepter::mousePressEvent ( TQMouseEvent* event )
{
- if ( event->button() == Qt::RightButton ) {
+ if ( event->button() == TQt::RightButton ) {
_editorWindow->showRMBMenu( _editorWindow->hasSelection() );
}
else {
@@ -56,7 +56,7 @@ void DragAccepter::mousePressEvent ( TQMouseEvent* event )
void DragAccepter::mouseReleaseEvent( TQMouseEvent* event )
{
- if ( _editorWindow->isPasteing() && event->button() == Qt::LeftButton ) {
+ if ( _editorWindow->isPasteing() && event->button() == TQt::LeftButton ) {
RegExp* regexp = _editorWindow->pasteData();
RegExpWidget *newElm = WidgetFactory::createWidget( regexp, _editorWindow, 0 );
@@ -75,7 +75,7 @@ void DragAccepter::mouseReleaseEvent( TQMouseEvent* event )
_editorWindow->clearSelection( true );
}
}
- else if ( _editorWindow->isInserting() && event->button() == Qt::LeftButton ) {
+ else if ( _editorWindow->isInserting() && event->button() == TQt::LeftButton ) {
if ( WidgetFactory::isContainer( _editorWindow->insertType() ) &&
_editorWindow->pointSelected( mapToGlobal( event->pos() ) ) ) {
RegExpWidget::mouseReleaseEvent( event );
diff --git a/kregexpeditor/kregexpeditorprivate.cpp b/kregexpeditor/kregexpeditorprivate.cpp
index 04ae00a..30b1537 100644
--- a/kregexpeditor/kregexpeditorprivate.cpp
+++ b/kregexpeditor/kregexpeditorprivate.cpp
@@ -50,11 +50,11 @@ KRegExpEditorPrivate::KRegExpEditorPrivate(TQWidget *parent, const char *name)
: TQWidget(parent, name), _updating( false ), _autoVerify( true )
{
setMinimumSize(730,300);
- TQDockArea* area = new TQDockArea(Qt::Horizontal, TQDockArea::Normal, this );
+ TQDockArea* area = new TQDockArea(TQt::Horizontal, TQDockArea::Normal, this );
area->setMinimumSize(2,2);
- TQDockArea* verArea1 = new TQDockArea(Qt::Vertical, TQDockArea::Normal, this );
+ TQDockArea* verArea1 = new TQDockArea(TQt::Vertical, TQDockArea::Normal, this );
verArea1->setMinimumSize(2,2);
- TQDockArea* verArea2 = new TQDockArea(Qt::Vertical, TQDockArea::Reverse, this );
+ TQDockArea* verArea2 = new TQDockArea(TQt::Vertical, TQDockArea::Reverse, this );
verArea2->setMinimumSize(2,2);
// The DockWindows.
@@ -67,7 +67,7 @@ KRegExpEditorPrivate::KRegExpEditorPrivate(TQWidget *parent, const char *name)
"you have developed and saved, and regular expressions shipped with the system." ));
// Editor window
- _editor = new TQSplitter(Qt::Vertical, this, "KRegExpEditorPrivate::_editor" );
+ _editor = new TQSplitter(TQt::Vertical, this, "KRegExpEditorPrivate::_editor" );
_scrolledEditorWindow =
new RegExpScrolledEditorWindow( _editor, "KRegExpEditorPrivate::_scrolledEditorWindow" );
diff --git a/kregexpeditor/regexpwidget.cpp b/kregexpeditor/regexpwidget.cpp
index c139180..d52fc17 100644
--- a/kregexpeditor/regexpwidget.cpp
+++ b/kregexpeditor/regexpwidget.cpp
@@ -119,7 +119,7 @@ void RegExpWidget::mousePressEvent ( TQMouseEvent* event )
if ( _editorWindow->isPasteing() || _editorWindow->isInserting() )
return;
- if ( event->button() == Qt::LeftButton ) {
+ if ( event->button() == TQt::LeftButton ) {
if ( ! _editorWindow->pointSelected( TQCursor::pos() ) ) {
_editorWindow->clearSelection( true );
if ( dynamic_cast<DragAccepter*>(this) == 0 && dynamic_cast<ConcWidget*>(this) == 0 ) {
@@ -131,7 +131,7 @@ void RegExpWidget::mousePressEvent ( TQMouseEvent* event )
event->button(), event->state());
TQApplication::sendEvent( _editorWindow, &ev );
}
- else if ( event->button() == Qt::RightButton ) {
+ else if ( event->button() == TQt::RightButton ) {
_editorWindow->showRMBMenu( true );
}