diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-08 11:05:10 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-08 18:04:37 +0900 |
commit | 5d52b8ff2df2d127a119ffd217a0db49c4d78567 (patch) | |
tree | cc21f36537bfb38f376cf97cb77688ea19882047 /kompare/komparepart | |
parent | 779722e260dd4d10bec7328ddc0a4e3e42a08e7d (diff) | |
download | tdesdk-5d52b8ff2df2d127a119ffd217a0db49c4d78567.tar.gz tdesdk-5d52b8ff2df2d127a119ffd217a0db49c4d78567.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1a7a57976491e8df569198d8e903bf9e57e233f0)
Diffstat (limited to 'kompare/komparepart')
-rw-r--r-- | kompare/komparepart/kompareconnectwidget.cpp | 8 | ||||
-rw-r--r-- | kompare/komparepart/komparesplitter.cpp | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/kompare/komparepart/kompareconnectwidget.cpp b/kompare/komparepart/kompareconnectwidget.cpp index 2cd74f54..35b40f2e 100644 --- a/kompare/komparepart/kompareconnectwidget.cpp +++ b/kompare/komparepart/kompareconnectwidget.cpp @@ -41,7 +41,7 @@ KompareConnectWidgetFrame::KompareConnectWidgetFrame( KompareListView* left, ViewSettings* settings, KompareSplitter* parent, const char* name ) : - TQSplitterHandle(Qt::Horizontal, (TQSplitter *)parent, name), + TQSplitterHandle(TQt::Horizontal, (TQSplitter *)parent, name), m_wid ( left, right, settings, this, name ), m_label ( "", this ), m_layout ( this ) @@ -75,7 +75,7 @@ static int kMouseOffset; void KompareConnectWidgetFrame::mouseMoveEvent( TQMouseEvent *e ) { - if ( !(e->state()&Qt::LeftButton) ) + if ( !(e->state()&TQt::LeftButton) ) return; TQCOORD pos = s->pick( parentWidget()->mapFromGlobal(e->globalPos()) ) @@ -86,14 +86,14 @@ void KompareConnectWidgetFrame::mouseMoveEvent( TQMouseEvent *e ) void KompareConnectWidgetFrame::mousePressEvent( TQMouseEvent *e ) { - if ( e->button() == Qt::LeftButton ) + if ( e->button() == TQt::LeftButton ) kMouseOffset = s->pick( e->pos() ); TQSplitterHandle::mousePressEvent(e); } void KompareConnectWidgetFrame::mouseReleaseEvent( TQMouseEvent *e ) { - if ( !opaque() && e->button() == Qt::LeftButton ) { + if ( !opaque() && e->button() == TQt::LeftButton ) { TQCOORD pos = s->pick( parentWidget()->mapFromGlobal(e->globalPos()) ) - kMouseOffset; ((KompareSplitter*)s)->moveSplitter( pos, id() ); diff --git a/kompare/komparepart/komparesplitter.cpp b/kompare/komparepart/komparesplitter.cpp index 5be663ba..6300837e 100644 --- a/kompare/komparepart/komparesplitter.cpp +++ b/kompare/komparepart/komparesplitter.cpp @@ -36,7 +36,7 @@ using namespace Diff2; KompareSplitter::KompareSplitter( ViewSettings *settings, TQWidget * parent, const char *name) : - TQSplitter(Qt::Horizontal, parent, name ), + TQSplitter(TQt::Horizontal, parent, name ), m_settings( settings ) { TQFrame *scrollFrame = new TQFrame( parent, "scrollFrame" ); @@ -46,9 +46,9 @@ KompareSplitter::KompareSplitter( ViewSettings *settings, TQWidget * parent, scrollFrame->setFrameStyle( TQFrame::NoFrame | TQFrame::Plain ); scrollFrame->setLineWidth(scrollFrame->style().pixelMetric(TQStyle::PM_DefaultFrameWidth)); TQGridLayout *pairlayout = new TQGridLayout(scrollFrame, 2, 2, 0); - m_vScroll = new TQScrollBar( Qt::Vertical, scrollFrame ); + m_vScroll = new TQScrollBar( TQt::Vertical, scrollFrame ); pairlayout->addWidget( m_vScroll, 0, 1 ); - m_hScroll = new TQScrollBar( Qt::Horizontal, scrollFrame ); + m_hScroll = new TQScrollBar( TQt::Horizontal, scrollFrame ); pairlayout->addWidget( m_hScroll, 1, 0 ); new KompareListViewFrame(true, m_settings, this, "source"); @@ -229,7 +229,7 @@ void KompareSplitter::moveSplitter( TQCOORD p, int id ) int* ws = new int[d->list.count()]; TQWidget *w = 0; bool upLeft; - if ( TQApplication::reverseLayout() && orient ==Qt::Horizontal ) { + if ( TQApplication::reverseLayout() && orient ==TQt::Horizontal ) { int q = p + s->wid->width(); doMove( FALSE, q, id - 1, -1, (p > max), poss, ws ); doMove( TRUE, q, id, -1, (p < min), poss, ws ); @@ -408,7 +408,7 @@ void KompareSplitter::repaintHandles() void KompareSplitter::wheelEvent( TQWheelEvent* e ) { // scroll lines... - if ( e->orientation() == Qt::Vertical ) + if ( e->orientation() == TQt::Vertical ) { if ( e->state() & TQt::ControlButton ) if ( e->delta() < 0 ) // scroll down one page |