diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:38 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:38 -0600 |
commit | d6331f1b56eb6dca7a1950658b2932f208015da0 (patch) | |
tree | f99bf8d1571f93304bdb4a46fb199a1bde60e6ee /cervisia/diffdlg.cpp | |
parent | e738fee8847c1f606df7b338a589cc8c0539a521 (diff) | |
download | tdesdk-d6331f1b56eb6dca7a1950658b2932f208015da0.tar.gz tdesdk-d6331f1b56eb6dca7a1950658b2932f208015da0.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'cervisia/diffdlg.cpp')
-rw-r--r-- | cervisia/diffdlg.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/cervisia/diffdlg.cpp b/cervisia/diffdlg.cpp index 8d7ed8c8..4c8f666e 100644 --- a/cervisia/diffdlg.cpp +++ b/cervisia/diffdlg.cpp @@ -23,7 +23,7 @@ #include <tqcheckbox.h> #include <tqcombobox.h> #include <tqlabel.h> -#include <tqlayout.h> +#include <layout.h> #include <tqkeycode.h> #include <tqfileinfo.h> #include <tqregexp.h> @@ -51,30 +51,30 @@ DiffDialog::DiffDialog(KConfig& cfg, TQWidget *parent, const char *name, bool mo TQFrame* mainWidget = makeMainWidget(); - TQBoxLayout *tqlayout = new TQVBoxLayout(mainWidget, 0, spacingHint()); + TQBoxLayout *layout = new TQVBoxLayout(mainWidget, 0, spacingHint()); - TQGridLayout *pairtqlayout = new TQGridLayout(tqlayout); - pairtqlayout->setRowStretch(0, 0); - pairtqlayout->setRowStretch(1, 1); - pairtqlayout->setColStretch(1, 0); - pairtqlayout->addColSpacing(1, 16); - pairtqlayout->setColStretch(0, 10); - pairtqlayout->setColStretch(2, 10); + TQGridLayout *pairlayout = new TQGridLayout(layout); + pairlayout->setRowStretch(0, 0); + pairlayout->setRowStretch(1, 1); + pairlayout->setColStretch(1, 0); + pairlayout->addColSpacing(1, 16); + pairlayout->setColStretch(0, 10); + pairlayout->setColStretch(2, 10); revlabel1 = new TQLabel(mainWidget); - pairtqlayout->addWidget(revlabel1, 0, 0); + pairlayout->addWidget(revlabel1, 0, 0); revlabel2 = new TQLabel(mainWidget); - pairtqlayout->addWidget(revlabel2, 0, 2); + pairlayout->addWidget(revlabel2, 0, 2); diff1 = new DiffView(cfg, true, false, mainWidget); diff2 = new DiffView(cfg, true, true, mainWidget); DiffZoomWidget *zoom = new DiffZoomWidget(cfg, mainWidget); zoom->setDiffView(diff2); - pairtqlayout->addWidget(diff1, 1, 0); - pairtqlayout->addWidget(zoom, 1, 1); - pairtqlayout->addWidget(diff2, 1, 2); + pairlayout->addWidget(diff1, 1, 0); + pairlayout->addWidget(zoom, 1, 1); + pairlayout->addWidget(diff2, 1, 2); diff1->setPartner(diff2); diff2->setPartner(diff1); @@ -91,25 +91,25 @@ DiffDialog::DiffDialog(KConfig& cfg, TQWidget *parent, const char *name, bool mo nofnlabel = new TQLabel(mainWidget); // avoids auto resize when the text is changed - nofnlabel->setMinimumWidth(fontMetrics().width(i18n("%1 differences").tqarg(10000))); + nofnlabel->setMinimumWidth(fontMetrics().width(i18n("%1 differences").arg(10000))); - backbutton = new TQPushButton(TQString::tqfromLatin1("&<<"), mainWidget); + backbutton = new TQPushButton(TQString::fromLatin1("&<<"), mainWidget); connect( backbutton, TQT_SIGNAL(clicked()), TQT_SLOT(backClicked()) ); - forwbutton = new TQPushButton(TQString::tqfromLatin1("&>>"), mainWidget); + forwbutton = new TQPushButton(TQString::fromLatin1("&>>"), mainWidget); connect( forwbutton, TQT_SIGNAL(clicked()), TQT_SLOT(forwClicked()) ); connect( this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(saveAsClicked()) ); - TQBoxLayout *buttontqlayout = new TQHBoxLayout(tqlayout); - buttontqlayout->addWidget(syncbox, 0); - buttontqlayout->addStretch(4); - buttontqlayout->addWidget(itemscombo); - buttontqlayout->addStretch(1); - buttontqlayout->addWidget(nofnlabel); - buttontqlayout->addStretch(1); - buttontqlayout->addWidget(backbutton); - buttontqlayout->addWidget(forwbutton); + TQBoxLayout *buttonlayout = new TQHBoxLayout(layout); + buttonlayout->addWidget(syncbox, 0); + buttonlayout->addStretch(4); + buttonlayout->addWidget(itemscombo); + buttonlayout->addStretch(1); + buttonlayout->addWidget(nofnlabel); + buttonlayout->addStretch(1); + buttonlayout->addWidget(backbutton); + buttonlayout->addWidget(forwbutton); setHelp("diff"); @@ -189,18 +189,18 @@ static TQString regionAsString(int linenoA, int linecountA, int linenoB, int lin int lineendB = linenoB+linecountB-1; TQString res; if (linecountB == 0) - res = TQString("%1,%2d%3").tqarg(linenoA).tqarg(lineendA).tqarg(linenoB-1); + res = TQString("%1,%2d%3").arg(linenoA).arg(lineendA).arg(linenoB-1); else if (linecountA == 0) - res = TQString("%1a%2,%3").tqarg(linenoA-1).tqarg(linenoB).tqarg(lineendB); + res = TQString("%1a%2,%3").arg(linenoA-1).arg(linenoB).arg(lineendB); else if (linenoA == lineendA) if (linenoB == lineendB) - res = TQString("%1c%2").tqarg(linenoA).tqarg(linenoB); + res = TQString("%1c%2").arg(linenoA).arg(linenoB); else - res = TQString("%1c%2,%3").tqarg(linenoA).tqarg(linenoB).tqarg(lineendB); + res = TQString("%1c%2,%3").arg(linenoA).arg(linenoB).arg(lineendB); else if (linenoB == lineendB) - res = TQString("%1,%2c%3").tqarg(linenoA).tqarg(lineendA).tqarg(linenoB); + res = TQString("%1,%2c%3").arg(linenoA).arg(lineendA).arg(linenoB); else - res = TQString("%1,%2c%3,%4").tqarg(linenoA).tqarg(lineendA).tqarg(linenoB).tqarg(lineendB); + res = TQString("%1,%2c%3,%4").arg(linenoA).arg(lineendA).arg(linenoB).arg(lineendB); return res; @@ -222,7 +222,7 @@ bool DiffDialog::parseCvsDiff(CvsService_stub* service, const TQString& fileName TQStringList linesA, linesB; int linenoA, linenoB; - setCaption(i18n("CVS Diff: %1").tqarg(fileName)); + setCaption(i18n("CVS Diff: %1").arg(fileName)); revlabel1->setText( revA.isEmpty()? i18n("Repository:") : i18n("Revision ")+revA+":" ); @@ -408,9 +408,9 @@ void DiffDialog::updateNofN() { TQString str; if (markeditem >= 0) - str = i18n("%1 of %2").tqarg(markeditem+1).tqarg(items.count()); + str = i18n("%1 of %2").arg(markeditem+1).arg(items.count()); else - str = i18n("%1 differences").tqarg(items.count()); + str = i18n("%1 differences").arg(items.count()); nofnlabel->setText(str); itemscombo->setCurrentItem(markeditem==-2? 0 : markeditem+1); @@ -443,8 +443,8 @@ void DiffDialog::updateHighlight(int newitem) diff1->setCenterLine(item->linenoA); diff2->setCenterLine(item->linenoB); } - diff1->tqrepaint(); - diff2->tqrepaint(); + diff1->repaint(); + diff2->repaint(); updateNofN(); } |