diff options
author | Michele Calgaro <[email protected]> | 2023-11-08 11:05:40 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-08 18:03:11 +0900 |
commit | b3f501d4920d589d126f1fe53cd7deb54cd8ef67 (patch) | |
tree | 2ce455340d62bb00f7775524d9acd4aa1f8d2d38 /khexedit | |
parent | c28e0608a97f46e79194eed488c3430b4e6efb57 (diff) | |
download | tdeutils-b3f501d4920d589d126f1fe53cd7deb54cd8ef67.tar.gz tdeutils-b3f501d4920d589d126f1fe53cd7deb54cd8ef67.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 007026cdc4d51e217ce6317b87c0ff2b2d120c83)
Diffstat (limited to 'khexedit')
-rw-r--r-- | khexedit/draglabel.cpp | 2 | ||||
-rw-r--r-- | khexedit/hexviewwidget.cpp | 12 | ||||
-rw-r--r-- | khexedit/hexviewwidget.h | 2 | ||||
-rw-r--r-- | khexedit/lib/khexedit.cpp | 8 |
4 files changed, 12 insertions, 12 deletions
diff --git a/khexedit/draglabel.cpp b/khexedit/draglabel.cpp index dfca9a6..fd38d7b 100644 --- a/khexedit/draglabel.cpp +++ b/khexedit/draglabel.cpp @@ -44,7 +44,7 @@ CDragLabel::~CDragLabel( void ) void CDragLabel::mousePressEvent( TQMouseEvent *e ) { - if( mValid == false || e->button() != Qt::LeftButton || mUrl.isEmpty() == true ) + if( mValid == false || e->button() != TQt::LeftButton || mUrl.isEmpty() == true ) { return; } diff --git a/khexedit/hexviewwidget.cpp b/khexedit/hexviewwidget.cpp index 28335af..16a3ffd 100644 --- a/khexedit/hexviewwidget.cpp +++ b/khexedit/hexviewwidget.cpp @@ -193,9 +193,9 @@ CHexViewWidget::CHexViewWidget( TQWidget *parent, const char *name, // signal whenever is receives a TQHideEvent. // - mVertScroll = new CScrollBar( Qt::Vertical, this ); + mVertScroll = new CScrollBar( TQt::Vertical, this ); if( mVertScroll == 0 ) { return; } - mHorzScroll = new CScrollBar( Qt::Horizontal, this ); + mHorzScroll = new CScrollBar( TQt::Horizontal, this ); if( mHorzScroll == 0 ) { return; } mCorner = new TQWidget( this ); if( mCorner == 0 ) { return; } @@ -1534,7 +1534,7 @@ void CHexViewWidget::mousePressEvent( TQMouseEvent *e ) // The RMB popup menu is managed by the KContextMenuManager // - if( e->button() == Qt::LeftButton ) + if( e->button() == TQt::LeftButton ) { if( e->state() & ControlButton ) { @@ -1550,7 +1550,7 @@ void CHexViewWidget::mousePressEvent( TQMouseEvent *e ) setCursorPosition( e->x(), e->y(), true, cellLevel ); } } - else if( e->button() == Qt::MidButton ) + else if( e->button() == TQt::MidButton ) { paste(); } @@ -1559,7 +1559,7 @@ void CHexViewWidget::mousePressEvent( TQMouseEvent *e ) void CHexViewWidget::mouseMoveEvent( TQMouseEvent *e ) { - if( e->state() & Qt::LeftButton ) + if( e->state() & TQt::LeftButton ) { if( mDragManager->start( e ) == false ) { @@ -1575,7 +1575,7 @@ void CHexViewWidget::mouseReleaseEvent( TQMouseEvent *e ) // The RMB popup menu is managed by the KContextMenuManager // - if( e->button() == Qt::LeftButton ) + if( e->button() == TQt::LeftButton ) { if( e->state() & ControlButton ) { diff --git a/khexedit/hexviewwidget.h b/khexedit/hexviewwidget.h index c439635..1b73ec1 100644 --- a/khexedit/hexviewwidget.h +++ b/khexedit/hexviewwidget.h @@ -43,7 +43,7 @@ class CScrollBar : public TQScrollBar public: - CScrollBar( Qt::Orientation o, TQWidget *parent, const char *name = 0 ) + CScrollBar( TQt::Orientation o, TQWidget *parent, const char *name = 0 ) : TQScrollBar( o, parent, name ) { } diff --git a/khexedit/lib/khexedit.cpp b/khexedit/lib/khexedit.cpp index eaedc9d..b60ad7e 100644 --- a/khexedit/lib/khexedit.cpp +++ b/khexedit/lib/khexedit.cpp @@ -1548,7 +1548,7 @@ void KHexEdit::contentsMousePressEvent( TQMouseEvent *e ) pauseCursor( true ); // care about a left button press? - if( e->button() == Qt::LeftButton ) + if( e->button() == TQt::LeftButton ) { MousePressed = true; @@ -1601,7 +1601,7 @@ void KHexEdit::contentsMousePressEvent( TQMouseEvent *e ) BufferRanges->removeFurtherSelections(); } - else if( e->button() == Qt::MidButton ) + else if( e->button() == TQt::MidButton ) BufferRanges->removeSelection(); if( BufferRanges->isModified() ) @@ -1684,7 +1684,7 @@ void KHexEdit::contentsMouseReleaseEvent( TQMouseEvent *e ) } } // middle mouse button paste? - else if( e->button() == Qt::MidButton && !isReadOnly() ) + else if( e->button() == TQt::MidButton && !isReadOnly() ) { pauseCursor(); @@ -1723,7 +1723,7 @@ void KHexEdit::contentsMouseReleaseEvent( TQMouseEvent *e ) void KHexEdit::contentsMouseDoubleClickEvent( TQMouseEvent *e ) { // we are only interested in LMB doubleclicks - if( e->button() != Qt::LeftButton ) + if( e->button() != TQt::LeftButton ) { e->ignore(); return; |