From 635077214fa90c14a6badc0c067c71d98aebd912 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 24 Aug 2023 18:18:44 +0900 Subject: Drop USE_QT4 code and unnecessary .tdevelop project file Signed-off-by: Michele Calgaro --- kdiff3.tdevelop | 191 ------------------------------------------- src/diff.cpp | 3 +- src/difftextwindow.cpp | 15 ++-- src/directorymergewindow.cpp | 4 - 4 files changed, 8 insertions(+), 205 deletions(-) delete mode 100644 kdiff3.tdevelop diff --git a/kdiff3.tdevelop b/kdiff3.tdevelop deleted file mode 100644 index 5fc04a9..0000000 --- a/kdiff3.tdevelop +++ /dev/null @@ -1,191 +0,0 @@ - - - - Joachim Eibl - joachim dot eibl at gmx dot de - 0.9.92 - KDevKDEAutoProject - C++ - - C++ - Code - Qt - KDE - - . - false - - - - - - - src/kdiff3 - debug - - - /daten/home/joachim/kdiff3-0.9.92a/debug/src/kdiff3 - custom - /daten/home/joachim/kdiff3_testdir/ - - true - true - - - - - - - optimized - GccOptions - GppOptions - G77Options - -O2 -g0 - - - --enable-debug=full --prefix=/opt/trinity - debug - kdevgccoptions - kdevgppoptions - kdevpgf77options - -O0 - - - - - - - - - - - - - - - - - true - 1 - false - - 0 - false - - - - - - - - - - false - false - - - - false - true - - - - - gtk - gnustep - python - php - perl - - - doc/en/ - debug/ - - - - - - - - - libtool - - - - - - true - false - false - - - false - true - 10 - - - - - - - - - - - - -f - - - - -dP - -f - -C -d -P - -u3 -p - - - - - true - true - true - false - true - true - 250 - 400 - true - 250 - - - - - set - m_,_ - theValue - true - true - - - true - 3 - /usr/lib/qt3 - - - - - .h - .cpp - - - - - - - - - - - - - - diff --git a/src/diff.cpp b/src/diff.cpp index 9475095..2bf58eb 100644 --- a/src/diff.cpp +++ b/src/diff.cpp @@ -361,7 +361,6 @@ static bool convertFileEncoding( const TQString& fileNameIn, TQTextCodec* pCodec return false; TQTextStream inStream( &in ); inStream.setCodec( pCodecIn ); - //inStream.setAutoDetectUnicode( false ); //not available in TQt3, will always detect UCS2 TQFile out( fileNameOut ); if ( ! out.open( IO_WriteOnly ) ) @@ -379,7 +378,7 @@ static TQTextCodec* detectEncoding( const char* buf, long size, long& skipBytes { if (size>=2) { - skipBytes = 0; // In TQt3 UTF-16LE can only be used if autodetected. + skipBytes = 0; if (buf[0]=='\xFF' && buf[1]=='\xFE' ) return TQTextCodec::codecForName( "ISO-10646-UCS2" );// "UTF-16LE" diff --git a/src/difftextwindow.cpp b/src/difftextwindow.cpp index 5a2ffe2..628f731 100644 --- a/src/difftextwindow.cpp +++ b/src/difftextwindow.cpp @@ -847,8 +847,7 @@ void DiffTextWindowData::writeLine( if ( m_pOptionDialog->m_bShowWhiteSpaceCharacters && m_pOptionDialog->m_bShowWhiteSpace) { p.fillRect( xOffset + fontWidth*outPos, yOffset+fontAscent, - fontWidth*spaces-1, fontDescent, c ); // QT3 - //fontWidth*spaces-1, fontDescent, c ); // QT4 + fontWidth*spaces-1, fontDescent, c ); } } else @@ -952,13 +951,13 @@ void DiffTextWindow::paintEvent( TQPaintEvent* e ) int endLine = min2( d->m_firstLine + getNofVisibleLines()+2, getNofLines() ); //if ( invalidRect.size()==size() ) - { // double buffering, obsolete with TQt4 - TQPainter painter(this); // Remove for TQt4 - TQPixmap pixmap( invalidRect.size() );// Remove for TQt4 + { + TQPainter painter(this); + TQPixmap pixmap( invalidRect.size() ); - MyPainter p( TQT_TQPAINTDEVICE(&pixmap), d->m_pOptionDialog->m_bRightToLeftLanguage, width(), fontMetrics().width('W') ); // For TQt4 change pixmap to this + MyPainter p( TQT_TQPAINTDEVICE(&pixmap), d->m_pOptionDialog->m_bRightToLeftLanguage, width(), fontMetrics().width('W') ); - p.translate( -invalidRect.x(), -invalidRect.y() );// Remove for TQt4 + p.translate( -invalidRect.x(), -invalidRect.y() ); p.setFont( font() ); p.TQPainter::fillRect( invalidRect, d->m_pOptionDialog->m_bgColor ); @@ -967,7 +966,7 @@ void DiffTextWindow::paintEvent( TQPaintEvent* e ) // p.drawLine( m_invalidRect.x(), m_invalidRect.y(), m_invalidRect.right(), m_invalidRect.bottom() ); // For test only p.end(); - painter.drawPixmap( invalidRect.x(), invalidRect.y(), pixmap );// Remove for TQt4 + painter.drawPixmap( invalidRect.x(), invalidRect.y(), pixmap ); } // else // { // no double buffering diff --git a/src/directorymergewindow.cpp b/src/directorymergewindow.cpp index 3ca33e7..ed00a15 100644 --- a/src/directorymergewindow.cpp +++ b/src/directorymergewindow.cpp @@ -217,11 +217,7 @@ void DirectoryMergeWindow::fastFileComparison( } pp.setInformation( i18n("Comparing file..."), 0, false ); -#ifdef USE_QT4 - typedef qint64 t_FileSize; -#else // USE_QT4 typedef TQFile::Offset t_FileSize; -#endif // USE_QT4 t_FileSize fullSize = file1.size(); t_FileSize sizeLeft = fullSize; -- cgit v1.2.3