summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kdiff3/bp002-d654b107.diff
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications/kdiff3/bp002-d654b107.diff')
-rw-r--r--redhat/applications/kdiff3/bp002-d654b107.diff328
1 files changed, 328 insertions, 0 deletions
diff --git a/redhat/applications/kdiff3/bp002-d654b107.diff b/redhat/applications/kdiff3/bp002-d654b107.diff
new file mode 100644
index 000000000..dc4a95c9e
--- /dev/null
+++ b/redhat/applications/kdiff3/bp002-d654b107.diff
@@ -0,0 +1,328 @@
+commit d654b1079f7801b0a65c8de8936d0d174656702b
+Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>
+Date: 1324497860 -0600
+
+ Rename obsolete tq methods to standard names
+
+diff --git a/src/diff.cpp b/src/diff.cpp
+index 722950f..feb1373 100644
+--- a/src/diff.cpp
++++ b/src/diff.cpp
+@@ -557,7 +557,7 @@ void SourceData::readAndPreprocess( TQTextCodec* pEncoding, bool bAutoDetectUnic
+ m_lmppData.m_v.resize( m_normalData.m_vSize );
+ for(int i=m_lmppData.m_vSize; i<m_normalData.m_vSize; ++i )
+ { // Set all empty lines to point to the end of the buffer.
+- m_lmppData.m_v[i].pLine = m_lmppData.m_tqunicodeBuf.tqunicode()+m_lmppData.m_tqunicodeBuf.length();
++ m_lmppData.m_v[i].pLine = m_lmppData.m_unicodeBuf.unicode()+m_lmppData.m_unicodeBuf.length();
+ }
+
+ m_lmppData.m_vSize = m_normalData.m_vSize;
+@@ -567,8 +567,8 @@ void SourceData::readAndPreprocess( TQTextCodec* pEncoding, bool bAutoDetectUnic
+ if ( m_pOptionDialog->m_bIgnoreCase )
+ {
+ int i;
+- TQChar* pBuf = const_cast<TQChar*>(m_lmppData.m_tqunicodeBuf.tqunicode());
+- int ucSize = m_lmppData.m_tqunicodeBuf.length();
++ TQChar* pBuf = const_cast<TQChar*>(m_lmppData.m_unicodeBuf.unicode());
++ int ucSize = m_lmppData.m_unicodeBuf.length();
+ for(i=0; i<ucSize; ++i)
+ {
+ pBuf[i] = pBuf[i].upper();
+@@ -604,7 +604,7 @@ void SourceData::readAndPreprocess( TQTextCodec* pEncoding, bool bAutoDetectUnic
+ /** Prepare the linedata vector for every input line.*/
+ void SourceData::FileData::preprocess( bool bPreserveCR, TQTextCodec* pEncoding )
+ {
+- //m_tqunicodeBuf = decodeString( m_pBuf, m_size, eEncoding );
++ //m_unicodeBuf = decodeString( m_pBuf, m_size, eEncoding );
+
+ long skipBytes = 0;
+ TQTextCodec* pCodec = ::detectEncoding( m_pBuf, m_size, skipBytes );
+@@ -616,11 +616,11 @@ void SourceData::FileData::preprocess( bool bPreserveCR, TQTextCodec* pEncoding
+ TQTextStream ts( ba, IO_ReadOnly );
+ ts.setCodec( pEncoding);
+ //ts.setAutoDetectUnicode( false );
+- m_tqunicodeBuf = ts.read();
++ m_unicodeBuf = ts.read();
+ ba.resetRawData( m_pBuf+skipBytes, m_size-skipBytes );
+
+- int ucSize = m_tqunicodeBuf.length();
+- const TQChar* p = m_tqunicodeBuf.tqunicode();
++ int ucSize = m_unicodeBuf.length();
++ const TQChar* p = m_unicodeBuf.unicode();
+
+ m_bIsText = true;
+ int lines = 1;
+@@ -770,9 +770,9 @@ static void checkLineForComments(
+ void SourceData::FileData::removeComments()
+ {
+ int line=0;
+- TQChar* p = const_cast<TQChar*>(m_tqunicodeBuf.tqunicode());
++ TQChar* p = const_cast<TQChar*>(m_unicodeBuf.unicode());
+ bool bWithinComment=false;
+- int size = m_tqunicodeBuf.length();
++ int size = m_unicodeBuf.length();
+ for(int i=0; i<size; ++i )
+ {
+ // std::cout << "2 " << std::string(&p[i], m_v[line].size) << std::endl;
+diff --git a/src/diff.h b/src/diff.h
+index a4015d1..3f876f8 100644
+--- a/src/diff.h
++++ b/src/diff.h
+@@ -293,7 +293,7 @@ private:
+ const char* m_pBuf;
+ int m_size;
+ int m_vSize; // Nr of lines in m_pBuf1 and size of m_v1, m_dv12 and m_dv13
+- TQString m_tqunicodeBuf;
++ TQString m_unicodeBuf;
+ std::vector<LineData> m_v;
+ bool m_bIsText;
+ bool readFile( const TQString& filename );
+diff --git a/src/fileaccess.cpp b/src/fileaccess.cpp
+index 1f90d5d..5584c50 100644
+--- a/src/fileaccess.cpp
++++ b/src/fileaccess.cpp
+@@ -1088,7 +1088,7 @@ void CvsIgnoreList::addEntry(const TQString& pattern)
+ unsigned int nofMetaCharacters = 0;
+
+ const TQChar* pos;
+- pos = pattern.tqunicode();
++ pos = pattern.unicode();
+ const TQChar* posEnd;
+ posEnd=pos + pattern.length();
+ while (pos < posEnd)
+@@ -1454,27 +1454,27 @@ ProgressDialog::ProgressDialog( TQWidget* pParent )
+ : TQDialog( pParent, 0, true )
+ {
+ m_bStayHidden = false;
+- TQVBoxLayout* tqlayout = new TQVBoxLayout(this);
++ TQVBoxLayout* layout = new TQVBoxLayout(this);
+
+ m_pInformation = new TQLabel( " ", this );
+- tqlayout->addWidget( m_pInformation );
++ layout->addWidget( m_pInformation );
+
+ m_pProgressBar = new KProgress(1000, this);
+- tqlayout->addWidget( m_pProgressBar );
++ layout->addWidget( m_pProgressBar );
+
+ m_pSubInformation = new TQLabel( " ", this);
+- tqlayout->addWidget( m_pSubInformation );
++ layout->addWidget( m_pSubInformation );
+
+ m_pSubProgressBar = new KProgress(1000, this);
+- tqlayout->addWidget( m_pSubProgressBar );
++ layout->addWidget( m_pSubProgressBar );
+
+ m_pSlowJobInfo = new TQLabel( " ", this);
+- tqlayout->addWidget( m_pSlowJobInfo );
++ layout->addWidget( m_pSlowJobInfo );
+
+- TQHBoxLayout* htqlayout = new TQHBoxLayout( tqlayout );
+- htqlayout->addStretch(1);
++ TQHBoxLayout* hlayout = new TQHBoxLayout( layout );
++ hlayout->addStretch(1);
+ m_pAbortButton = new TQPushButton( i18n("&Cancel"), this);
+- htqlayout->addWidget( m_pAbortButton );
++ hlayout->addWidget( m_pAbortButton );
+ connect( m_pAbortButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAbort()) );
+
+ m_progressDelayTimer = 0;
+diff --git a/src/gnudiff_io.cpp b/src/gnudiff_io.cpp
+index f29fd31..aab645f 100644
+--- a/src/gnudiff_io.cpp
++++ b/src/gnudiff_io.cpp
+@@ -169,7 +169,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
+ while ( p<bufend && (c = *p) != '\n' )
+ {
+ if (! (isWhite(c) || bIgnoreNumbers && (c.isDigit() || c=='-' || c=='.' ) ))
+- h = HASH (h, c.lower().tqunicode());
++ h = HASH (h, c.lower().unicode());
+ ++p;
+ }
+ break;
+@@ -177,7 +177,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
+ default:
+ while ( p<bufend && (c = *p) != '\n' )
+ {
+- h = HASH (h, c.lower().tqunicode());
++ h = HASH (h, c.lower().unicode());
+ ++p;
+ }
+ break;
+@@ -189,7 +189,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
+ while ( p<bufend && (c = *p) != '\n')
+ {
+ if (! (isWhite(c)|| bIgnoreNumbers && (c.isDigit() || c=='-' || c=='.' ) ))
+- h = HASH (h, c.tqunicode());
++ h = HASH (h, c.unicode());
+ ++p;
+ }
+ break;
+@@ -197,7 +197,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
+ default:
+ while ( p<bufend && (c = *p) != '\n')
+ {
+- h = HASH (h, c.tqunicode());
++ h = HASH (h, c.unicode());
+ ++p;
+ }
+ break;
+diff --git a/src/mergeresultwindow.cpp b/src/mergeresultwindow.cpp
+index dea1407..760d794 100644
+--- a/src/mergeresultwindow.cpp
++++ b/src/mergeresultwindow.cpp
+@@ -2613,10 +2613,10 @@ void MergeResultWindow::pasteClipboard( bool bFromSelection )
+ TQString str = melIt->getString( this );
+ int x = convertToPosInText( str, m_cursorXPos, m_pOptionDialog->m_tabSize );
+
+- if ( !TQApplication::tqclipboard()->supportsSelection() )
++ if ( !TQApplication::clipboard()->supportsSelection() )
+ bFromSelection = false;
+
+- TQString clipBoard = TQApplication::tqclipboard()->text( bFromSelection ? TQClipboard::Selection : TQClipboard::Clipboard );
++ TQString clipBoard = TQApplication::clipboard()->text( bFromSelection ? TQClipboard::Selection : TQClipboard::Clipboard );
+
+ TQString currentLine = str.left(x);
+ TQString endOfLine = str.mid(x);
+diff --git a/src/pdiff.cpp b/src/pdiff.cpp
+index 3986596..0a10b00 100644
+--- a/src/pdiff.cpp
++++ b/src/pdiff.cpp
+@@ -610,13 +610,13 @@ void KDiff3App::sourceMask( int srcMask, int enabledMask )
+
+
+ // Function uses setMinSize( sizeHint ) before adding the widget.
+-// void addWidget(TQBoxLayout* tqlayout, TQWidget* widget);
++// void addWidget(TQBoxLayout* layout, TQWidget* widget);
+ template <class W, class L>
+-void addWidget( L* tqlayout, W* widget)
++void addWidget( L* layout, W* widget)
+ {
+ TQSize s = widget->sizeHint();
+ widget->setMinimumSize( TQSize(max2(s.width(),0),max2(s.height(),0) ) );
+- tqlayout->addWidget( widget );
++ layout->addWidget( widget );
+ }
+
+ void KDiff3App::initView()
+@@ -1174,7 +1174,7 @@ void KDiff3App::slotEditCut()
+
+ if ( !s.isNull() )
+ {
+- TQApplication::tqclipboard()->setText( s, TQClipboard::Clipboard );
++ TQApplication::clipboard()->setText( s, TQClipboard::Clipboard );
+ }
+
+ slotStatusMsg(i18n("Ready."));
+@@ -1190,7 +1190,7 @@ void KDiff3App::slotEditCopy()
+ if ( s.isNull() && m_pMergeResultWindow!=0 ) s = m_pMergeResultWindow->getSelection();
+ if ( !s.isNull() )
+ {
+- TQApplication::tqclipboard()->setText( s, TQClipboard::Clipboard );
++ TQApplication::clipboard()->setText( s, TQClipboard::Clipboard );
+ }
+
+ slotStatusMsg(i18n("Ready."));
+@@ -1208,17 +1208,17 @@ void KDiff3App::slotEditPaste()
+ {
+ if ( m_pDiffTextWindow1->hasFocus() )
+ {
+- m_sd1.setData( TQApplication::tqclipboard()->text(TQClipboard::Clipboard) );
++ m_sd1.setData( TQApplication::clipboard()->text(TQClipboard::Clipboard) );
+ init();
+ }
+ else if ( m_pDiffTextWindow2->hasFocus() )
+ {
+- m_sd2.setData( TQApplication::tqclipboard()->text(TQClipboard::Clipboard) );
++ m_sd2.setData( TQApplication::clipboard()->text(TQClipboard::Clipboard) );
+ init();
+ }
+ else if ( m_pDiffTextWindow3->hasFocus() )
+ {
+- m_sd3.setData( TQApplication::tqclipboard()->text(TQClipboard::Clipboard) );
++ m_sd3.setData( TQApplication::clipboard()->text(TQClipboard::Clipboard) );
+ init();
+ }
+ }
+@@ -1465,7 +1465,7 @@ void KDiff3App::slotSelectionEnd()
+ }
+ else
+ {
+- TQClipboard *clipBoard = TQApplication::tqclipboard();
++ TQClipboard *clipBoard = TQApplication::clipboard();
+
+ if (clipBoard->supportsSelection ())
+ {
+@@ -1484,7 +1484,7 @@ void KDiff3App::slotSelectionEnd()
+
+ void KDiff3App::slotClipboardChanged()
+ {
+- TQString s = TQApplication::tqclipboard()->text();
++ TQString s = TQApplication::clipboard()->text();
+ //editPaste->setEnabled(!s.isEmpty());
+ }
+
+diff --git a/src/smalldialogs.cpp b/src/smalldialogs.cpp
+index ff7ca56..b19b7c2 100644
+--- a/src/smalldialogs.cpp
++++ b/src/smalldialogs.cpp
+@@ -339,47 +339,47 @@ void OpenDialog::slotSwapCopyNames( int id ) // id selected in the popup menu
+ FindDialog::FindDialog(TQWidget* pParent)
+ : TQDialog( pParent )
+ {
+- TQGridLayout* tqlayout = new TQGridLayout( this );
+- tqlayout->setMargin(5);
+- tqlayout->setSpacing(5);
++ TQGridLayout* layout = new TQGridLayout( this );
++ layout->setMargin(5);
++ layout->setSpacing(5);
+
+ int line=0;
+- tqlayout->addMultiCellWidget( new TQLabel(i18n("Search text:"),this), line,line,0,1 );
++ layout->addMultiCellWidget( new TQLabel(i18n("Search text:"),this), line,line,0,1 );
+ ++line;
+
+ m_pSearchString = new TQLineEdit( this );
+- tqlayout->addMultiCellWidget( m_pSearchString, line,line,0,1 );
++ layout->addMultiCellWidget( m_pSearchString, line,line,0,1 );
+ ++line;
+
+ m_pCaseSensitive = new TQCheckBox(i18n("Case sensitive"),this);
+- tqlayout->addWidget( m_pCaseSensitive, line, 1 );
++ layout->addWidget( m_pCaseSensitive, line, 1 );
+
+ m_pSearchInA = new TQCheckBox(i18n("Search A"),this);
+- tqlayout->addWidget( m_pSearchInA, line, 0 );
++ layout->addWidget( m_pSearchInA, line, 0 );
+ m_pSearchInA->setChecked( true );
+ ++line;
+
+ m_pSearchInB = new TQCheckBox(i18n("Search B"),this);
+- tqlayout->addWidget( m_pSearchInB, line, 0 );
++ layout->addWidget( m_pSearchInB, line, 0 );
+ m_pSearchInB->setChecked( true );
+ ++line;
+
+ m_pSearchInC = new TQCheckBox(i18n("Search C"),this);
+- tqlayout->addWidget( m_pSearchInC, line, 0 );
++ layout->addWidget( m_pSearchInC, line, 0 );
+ m_pSearchInC->setChecked( true );
+ ++line;
+
+ m_pSearchInOutput = new TQCheckBox(i18n("Search output"),this);
+- tqlayout->addWidget( m_pSearchInOutput, line, 0 );
++ layout->addWidget( m_pSearchInOutput, line, 0 );
+ m_pSearchInOutput->setChecked( true );
+ ++line;
+
+ TQPushButton* pButton = new TQPushButton( i18n("&Search"), this );
+- tqlayout->addWidget( pButton, line, 0 );
++ layout->addWidget( pButton, line, 0 );
+ connect( pButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()));
+
+ pButton = new TQPushButton( i18n("&Cancel"), this );
+- tqlayout->addWidget( pButton, line, 1 );
++ layout->addWidget( pButton, line, 1 );
+ connect( pButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()));
+
+ hide();