Remove additional unneeded tq method conversions

(cherry picked from commit dc141e9d18)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent 1c43f2ded8
commit 287d452c97

@ -57,7 +57,7 @@ public:
} }
v /= 1024.0; v /= 1024.0;
} }
return TQString("%1 %2Byte").tqarg(v,0,'f',pre?2:0).tqarg(pre?TQString(TQChar(pre)):TQString("")); return TQString("%1 %2Byte").arg(v,0,'f',pre?2:0).arg(pre?TQString(TQChar(pre)):TQString(""));
} }
}; };

@ -201,7 +201,7 @@ void kdesvn::load(const KURL& url,bool addRescent)
} }
} }
if (!ret) { if (!ret) {
changeStatusbar(i18n("Could not open url %1").tqarg(url.prettyURL())); changeStatusbar(i18n("Could not open url %1").arg(url.prettyURL()));
if (rac) { if (rac) {
rac->removeURL(url); rac->removeURL(url);
} }

@ -156,8 +156,8 @@ void kdesvnPart::slotDispPopup(const TQString&name,TQWidget**target)
KAboutData* kdesvnPart::createAboutData() KAboutData* kdesvnPart::createAboutData()
{ {
m_Extratext = TQString(I18N_NOOP("Built with Subversion library: %1\n")).tqarg(svn::Version::linked_version()); m_Extratext = TQString(I18N_NOOP("Built with Subversion library: %1\n")).arg(svn::Version::linked_version());
m_Extratext+=TQString(I18N_NOOP("Running Subversion library: %1")).tqarg(svn::Version::running_version()); m_Extratext+=TQString(I18N_NOOP("Running Subversion library: %1")).arg(svn::Version::running_version());
KAboutData*about = new KAboutData("kdesvnpart", I18N_NOOP("kdesvn Part"), version, description, KAboutData*about = new KAboutData("kdesvnpart", I18N_NOOP("kdesvn Part"), version, description,
KAboutData::License_GPL, "(C) 2005-2007 Rajko Albrecht",0, KAboutData::License_GPL, "(C) 2005-2007 Rajko Albrecht",0,
@ -208,7 +208,7 @@ void kdesvnPart::setupActions()
kdDebug()<<"Appname = " << (TQString)kapp->instanceName() << endl; kdDebug()<<"Appname = " << (TQString)kapp->instanceName() << endl;
KAction * t = KStdAction::preferences(this, TQT_SLOT(slotShowSettings()), actionCollection(),"kdesvnpart_pref"); KAction * t = KStdAction::preferences(this, TQT_SLOT(slotShowSettings()), actionCollection(),"kdesvnpart_pref");
t->setText(i18n("&Configure %1...").tqarg("Kdesvn")); t->setText(i18n("&Configure %1...").arg("Kdesvn"));
if (TQString(kapp->instanceName())!=TQString("kdesvn")) { if (TQString(kapp->instanceName())!=TQString("kdesvn")) {
(void)new KAction(i18n("&About kdesvn part"), "kdesvn", 0, this, TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_kdesvnpart"); (void)new KAction(i18n("&About kdesvn part"), "kdesvn", 0, this, TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_kdesvnpart");
(void)new KAction(i18n("Kdesvn &Handbook"), "help", 0, this, TQT_SLOT(appHelpActivated()), actionCollection(), "help_kdesvn"); (void)new KAction(i18n("Kdesvn &Handbook"), "help", 0, this, TQT_SLOT(appHelpActivated()), actionCollection(), "help_kdesvn");

@ -238,7 +238,7 @@ TQStringList kdesvnd_dcop::get_sslclientcertpw(TQString realm)
TQStringList resList; TQStringList resList;
TQCString npass; TQCString npass;
int keep = 1; int keep = 1;
int res = KPasswordDialog::getPassword(npass,i18n("Enter password for realm %1").tqarg(realm),&keep); int res = KPasswordDialog::getPassword(npass,i18n("Enter password for realm %1").arg(realm),&keep);
if (res!=KPasswordDialog::Accepted) { if (res!=KPasswordDialog::Accepted) {
return resList; return resList;
} }

@ -116,9 +116,9 @@ void KioListener::contextNotify (const char * path,svn_wc_notify_action_t action
case svn_wc_notify_add: case svn_wc_notify_add:
{ {
if (mime_type && (svn_mime_type_is_binary (mime_type))) if (mime_type && (svn_mime_type_is_binary (mime_type)))
userstring = i18n( "A (bin) %1" ).tqarg( path ); userstring = i18n( "A (bin) %1" ).arg( path );
else else
userstring = i18n( "A %1" ).tqarg( path ); userstring = i18n( "A %1" ).arg( path );
break; break;
} }
break; break;
@ -126,33 +126,33 @@ void KioListener::contextNotify (const char * path,svn_wc_notify_action_t action
break; break;
case svn_wc_notify_delete: //delete case svn_wc_notify_delete: //delete
m_HasChanges = TRUE; m_HasChanges = TRUE;
userstring = i18n( "D %1" ).tqarg( path ); userstring = i18n( "D %1" ).arg( path );
break; break;
case svn_wc_notify_restore : //restore case svn_wc_notify_restore : //restore
userstring=i18n( "Restored %1." ).tqarg( path ); userstring=i18n( "Restored %1." ).arg( path );
break; break;
case svn_wc_notify_revert : //revert case svn_wc_notify_revert : //revert
userstring=i18n( "Reverted %1." ).tqarg( path ); userstring=i18n( "Reverted %1." ).arg( path );
break; break;
case svn_wc_notify_failed_revert: //failed revert case svn_wc_notify_failed_revert: //failed revert
userstring=i18n( "Failed to revert %1.\nTry updating instead." ).tqarg( path ); userstring=i18n( "Failed to revert %1.\nTry updating instead." ).arg( path );
break; break;
case svn_wc_notify_resolved: //resolved case svn_wc_notify_resolved: //resolved
userstring=i18n( "Resolved conflicted state of %1." ).tqarg( path ); userstring=i18n( "Resolved conflicted state of %1." ).arg( path );
break; break;
case svn_wc_notify_skip: //skip case svn_wc_notify_skip: //skip
if ( content_state == svn_wc_notify_state_missing ) if ( content_state == svn_wc_notify_state_missing )
userstring=i18n("Skipped missing target %1.").tqarg( path ); userstring=i18n("Skipped missing target %1.").arg( path );
else else
userstring=i18n("Skipped %1.").tqarg( path ); userstring=i18n("Skipped %1.").arg( path );
break; break;
case svn_wc_notify_update_delete: //update_delete case svn_wc_notify_update_delete: //update_delete
m_HasChanges = TRUE; m_HasChanges = TRUE;
userstring=i18n( "D %1" ).tqarg( path ); userstring=i18n( "D %1" ).arg( path );
break; break;
case svn_wc_notify_update_add: //update_add case svn_wc_notify_update_add: //update_add
m_HasChanges = TRUE; m_HasChanges = TRUE;
userstring=i18n( "A %1" ).tqarg( path ); userstring=i18n( "A %1" ).arg( path );
break; break;
case svn_wc_notify_update_update: //update_update case svn_wc_notify_update_update: //update_update
{ {
@ -195,13 +195,13 @@ void KioListener::contextNotify (const char * path,svn_wc_notify_action_t action
{ {
if (!m_External) { if (!m_External) {
if (SVN_IS_VALID_REVNUM(revision)) { if (SVN_IS_VALID_REVNUM(revision)) {
userstring = i18n("Finished at revision %1.").tqarg(revision); userstring = i18n("Finished at revision %1.").arg(revision);
} else { } else {
userstring = i18n("Finished."); userstring = i18n("Finished.");
} }
} else { } else {
if (SVN_IS_VALID_REVNUM(revision)) { if (SVN_IS_VALID_REVNUM(revision)) {
userstring = i18n("Finished external at revision %1.").tqarg(revision); userstring = i18n("Finished external at revision %1.").arg(revision);
} else { } else {
userstring = i18n("Finished external."); userstring = i18n("Finished external.");
} }
@ -212,30 +212,30 @@ void KioListener::contextNotify (const char * path,svn_wc_notify_action_t action
break; break;
case svn_wc_notify_update_external: //update_external case svn_wc_notify_update_external: //update_external
m_External = TRUE; m_External = TRUE;
userstring = i18n("Fetching external item into %1." ).tqarg( path ); userstring = i18n("Fetching external item into %1." ).arg( path );
break; break;
case svn_wc_notify_status_completed: //status_completed case svn_wc_notify_status_completed: //status_completed
if (SVN_IS_VALID_REVNUM (revision)) if (SVN_IS_VALID_REVNUM (revision))
userstring = i18n( "Status against revision: %1.").tqarg( revision ); userstring = i18n( "Status against revision: %1.").arg( revision );
break; break;
case svn_wc_notify_status_external: //status_external case svn_wc_notify_status_external: //status_external
userstring = i18n("Performing status on external item at %1.").tqarg( path ); userstring = i18n("Performing status on external item at %1.").arg( path );
break; break;
case svn_wc_notify_commit_modified: //commit_modified case svn_wc_notify_commit_modified: //commit_modified
userstring = i18n( "Sending %1.").tqarg( path ); userstring = i18n( "Sending %1.").arg( path );
break; break;
case svn_wc_notify_commit_added: //commit_added case svn_wc_notify_commit_added: //commit_added
if (mime_type && svn_mime_type_is_binary (mime_type)) { if (mime_type && svn_mime_type_is_binary (mime_type)) {
userstring = i18n( "Adding (bin) %1.").tqarg( path ); userstring = i18n( "Adding (bin) %1.").arg( path );
} else { } else {
userstring = i18n( "Adding %1.").tqarg( path ); userstring = i18n( "Adding %1.").arg( path );
} }
break; break;
case svn_wc_notify_commit_deleted: //commit_deleted case svn_wc_notify_commit_deleted: //commit_deleted
userstring = i18n( "Deleting %1.").tqarg( path ); userstring = i18n( "Deleting %1.").arg( path );
break; break;
case svn_wc_notify_commit_replaced: //commit_replaced case svn_wc_notify_commit_replaced: //commit_replaced
userstring = i18n( "Replacing %1.").tqarg( path ); userstring = i18n( "Replacing %1.").arg( path );
break; break;
case svn_wc_notify_commit_postfix_txdelta: //commit_postfix_txdelta case svn_wc_notify_commit_postfix_txdelta: //commit_postfix_txdelta
if (!m_FirstTxDelta) { if (!m_FirstTxDelta) {

@ -724,7 +724,7 @@ void kio_svnProtocol::commit(const KURL::List&url)
for (unsigned j=0;j<url.count();++j) { for (unsigned j=0;j<url.count();++j) {
TQString userstring; TQString userstring;
if (nnum!=svn::Revision::UNDEFINED) { if (nnum!=svn::Revision::UNDEFINED) {
userstring = i18n( "Committed revision %1." ).tqarg(nnum.toString()); userstring = i18n( "Committed revision %1." ).arg(nnum.toString());
} else { } else {
userstring = i18n ( "Nothing to commit." ); userstring = i18n ( "Nothing to commit." );
} }

@ -35,7 +35,7 @@ AuthDialogImpl::AuthDialogImpl(const TQString & realm,const TQString&user,TQWidg
TQString text = m_StorePasswordButton->text(); TQString text = m_StorePasswordButton->text();
m_StorePasswordButton->setText( m_StorePasswordButton->setText(
m_StorePasswordButton->text()+TQString(" (%1)") m_StorePasswordButton->text()+TQString(" (%1)")
.tqarg((Kdesvnsettings::passwords_in_wallet()?i18n("into KDE Wallet"):i18n("into subversions simple storage")))); .arg((Kdesvnsettings::passwords_in_wallet()?i18n("into KDE Wallet"):i18n("into subversions simple storage"))));
if (!realm.isEmpty()) { if (!realm.isEmpty()) {
m_RealmLabel->setText(m_RealmLabel->text()+" "+realm); m_RealmLabel->setText(m_RealmLabel->text()+" "+realm);
resize( TQSize(334, 158).expandedTo(minimumSizeHint()) ); resize( TQSize(334, 158).expandedTo(minimumSizeHint()) );

@ -57,7 +57,7 @@
&lt;i&gt;empty depth&lt;/i&gt;&lt;br&gt;Just the named directory, no entries. Updates will not pull in any files or subdirectories not already present. &lt;i&gt;empty depth&lt;/i&gt;&lt;br&gt;Just the named directory, no entries. Updates will not pull in any files or subdirectories not already present.
&lt;/p&gt; &lt;/p&gt;
&lt;p&gt; &lt;p&gt;
&lt;i&gt;Files depth&lt;/i&gt;&lt;br&gt;Folder and its file tqchildren, but not subdirs. Updates will pull in any files not already present, but not subdirectories. &lt;i&gt;Files depth&lt;/i&gt;&lt;br&gt;Folder and its file children, but not subdirs. Updates will pull in any files not already present, but not subdirectories.
&lt;/p&gt; &lt;/p&gt;
&lt;p&gt; &lt;p&gt;
&lt;i&gt;Immediate depth&lt;/i&gt;&lt;br&gt; &lt;i&gt;Immediate depth&lt;/i&gt;&lt;br&gt;

@ -56,7 +56,7 @@ DepthSelector::~DepthSelector()
void DepthSelector::addItemWidget(TQWidget*aWidget) void DepthSelector::addItemWidget(TQWidget*aWidget)
{ {
DepthFormLayout->removeItem(m_leftspacer); DepthFormLayout->removeItem(m_leftspacer);
aWidget->reparent(this,tqgeometry().topLeft()); aWidget->reparent(this,geometry().topLeft());
DepthFormLayout->addWidget(aWidget); DepthFormLayout->addWidget(aWidget);
aWidget->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed); aWidget->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed);
DepthFormLayout->addItem(m_leftspacer); DepthFormLayout->addItem(m_leftspacer);

@ -96,7 +96,7 @@ void DiffBrowser::saveDiff()
TQFile tfile(saveTo); TQFile tfile(saveTo);
if (tfile.exists()) { if (tfile.exists()) {
if (KMessageBox::warningYesNo(TQT_TQWIDGET(KApplication::activeModalWidget()), if (KMessageBox::warningYesNo(TQT_TQWIDGET(KApplication::activeModalWidget()),
i18n("File %1 exists - overwrite?").tqarg(saveTo)) i18n("File %1 exists - overwrite?").arg(saveTo))
!=KMessageBox::Yes) { !=KMessageBox::Yes) {
return; return;
} }

@ -49,7 +49,7 @@
<property name="text"> <property name="text">
<string>Select encoding:</string> <string>Select encoding:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -47,7 +47,7 @@
<property name="text"> <property name="text">
<string>Review affected items</string> <string>Review affected items</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>
@ -167,7 +167,7 @@
<property name="text"> <property name="text">
<string>Enter a log message</string> <string>Enter a log message</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>

@ -224,7 +224,7 @@ void Logmsg_impl::initHistory()
KConfigGroup cs(Kdesvnsettings::self()->config(),"log_messages"); KConfigGroup cs(Kdesvnsettings::self()->config(),"log_messages");
TQString s = TQString(); TQString s = TQString();
unsigned int current = 0; unsigned int current = 0;
TQString key = TQString("log_%0").tqarg(current); TQString key = TQString("log_%0").arg(current);
s = cs.readEntry(key,TQString()); s = cs.readEntry(key,TQString());
while (s!=TQString()) { while (s!=TQString()) {
if (current<smax_message_history) { if (current<smax_message_history) {
@ -233,7 +233,7 @@ void Logmsg_impl::initHistory()
cs.deleteEntry(key); cs.deleteEntry(key);
} }
++current; ++current;
key = TQString("log_%0").tqarg(current); key = TQString("log_%0").arg(current);
s = cs.readEntry(key,TQString()); s = cs.readEntry(key,TQString());
} }
} }
@ -270,7 +270,7 @@ void Logmsg_impl::saveHistory(bool canceld)
} }
KConfigGroup cs(Kdesvnsettings::self()->config(),"log_messages"); KConfigGroup cs(Kdesvnsettings::self()->config(),"log_messages");
for (unsigned int i = 0; i < sLogHistory.size();++i) { for (unsigned int i = 0; i < sLogHistory.size();++i) {
cs.writeEntry(TQString("log_%0").tqarg(i),sLogHistory[i]); cs.writeEntry(TQString("log_%0").arg(i),sLogHistory[i]);
} }
cs.sync(); cs.sync();
} else { } else {
@ -449,7 +449,7 @@ TQString Logmsg_impl::getLogmessage(const logActionEntries&_on,
void Logmsg_impl::addItemWidget(TQWidget*aWidget) void Logmsg_impl::addItemWidget(TQWidget*aWidget)
{ {
m_DepthSelector->addItemWidget(aWidget); m_DepthSelector->addItemWidget(aWidget);
/* aWidget->reparent(this,tqgeometry().topLeft()); /* aWidget->reparent(this,geometry().topLeft());
m_ItemsLayout->addWidget(aWidget); m_ItemsLayout->addWidget(aWidget);
kdDebug()<<"SizeHint: "<<aWidget->minimumSizeHint()<< endl; kdDebug()<<"SizeHint: "<<aWidget->minimumSizeHint()<< endl;
aWidget->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed); aWidget->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed);

@ -36,7 +36,7 @@ SslTrustPrompt_impl::SslTrustPrompt_impl(const TQString&host,TQWidget *parent, c
:SslTrustPrompt(parent, name) :SslTrustPrompt(parent, name)
{ {
m_MainLabel->setText("<p align=\"center\"><b>"+ m_MainLabel->setText("<p align=\"center\"><b>"+
i18n("Error validating server certificate for '%1'").tqarg(host)+ i18n("Error validating server certificate for '%1'").arg(host)+
TQString("</b></p>")); TQString("</b></p>"));
} }

@ -102,7 +102,7 @@
<property name="text"> <property name="text">
<string>Standard message:</string> <string>Standard message:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -88,7 +88,7 @@
<property name="text"> <property name="text">
<string>see "Whats this" for details</string> <string>see "Whats this" for details</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignCenter</set> <set>WordBreak|AlignCenter</set>
</property> </property>
</widget> </widget>
@ -107,7 +107,7 @@
<property name="text"> <property name="text">
<string>Conflict resolver program:</string> <string>Conflict resolver program:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -118,7 +118,7 @@
<property name="text"> <property name="text">
<string>External merge program:</string> <string>External merge program:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -156,7 +156,7 @@ Default: &lt;tt&gt;kdiff3 %o %m %n -o %t&lt;/tt&gt;
<property name="text"> <property name="text">
<string>External diff display:</string> <string>External diff display:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -72,7 +72,7 @@
<property name="text"> <property name="text">
<string>Locked items:</string> <string>Locked items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -91,7 +91,7 @@
<property name="text"> <property name="text">
<string>Not versioned items:</string> <string>Not versioned items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -102,7 +102,7 @@
<property name="text"> <property name="text">
<string>Remote changed items:</string> <string>Remote changed items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -113,7 +113,7 @@
<property name="text"> <property name="text">
<string>Added items:</string> <string>Added items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -124,7 +124,7 @@
<property name="text"> <property name="text">
<string>Deleted items:</string> <string>Deleted items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -167,7 +167,7 @@
<property name="text"> <property name="text">
<string>Conflicted items:</string> <string>Conflicted items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -178,7 +178,7 @@
<property name="text"> <property name="text">
<string>Missed items:</string> <string>Missed items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -189,7 +189,7 @@
<property name="text"> <property name="text">
<string>Local changed items:</string> <string>Local changed items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -200,7 +200,7 @@
<property name="text"> <property name="text">
<string>Item needs lock:</string> <string>Item needs lock:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -79,7 +79,7 @@
<property name="text"> <property name="text">
<string>Color for added items:</string> <string>Color for added items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -108,7 +108,7 @@
<property name="text"> <property name="text">
<string>Color for deleted items:</string> <string>Color for deleted items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -137,7 +137,7 @@
<property name="text"> <property name="text">
<string>Color for copied items:</string> <string>Color for copied items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -166,7 +166,7 @@
<property name="text"> <property name="text">
<string>Color for renamed items:</string> <string>Color for renamed items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -195,7 +195,7 @@
<property name="text"> <property name="text">
<string>Color for modified items:</string> <string>Color for modified items:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -100,7 +100,7 @@ public:
BlameDisplayItem(KListView*,BlameDisplayItem*,const svn::AnnotateLine&,bool,BlameDisplay_impl*); BlameDisplayItem(KListView*,BlameDisplayItem*,const svn::AnnotateLine&,bool,BlameDisplay_impl*);
virtual ~BlameDisplayItem(){} virtual ~BlameDisplayItem(){}
virtual int compare(TQListViewItem *i, int col, bool ascending)const; virtual int compare(TQListViewItem *i, int col, bool ascending)const;
virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment); virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment);
virtual int rtti()const{return 1000;} virtual int rtti()const{return 1000;}
virtual int width( const TQFontMetrics & fm, const TQListView * lv, int c ) const; virtual int width( const TQFontMetrics & fm, const TQListView * lv, int c ) const;
@ -116,7 +116,7 @@ public:
} }
TQString _line = m_Content.tLine(); TQString _line = m_Content.tLine();
_line.replace("\t"," "); _line.replace("\t"," ");
setText(COL_LINE,TQString("%1").tqarg(_line)); setText(COL_LINE,TQString("%1").arg(_line));
} }
protected: protected:
@ -153,17 +153,17 @@ int BlameDisplayItem::width (const TQFontMetrics & fm, const TQListView * lv, in
void BlameDisplayItem::display() void BlameDisplayItem::display()
{ {
if (m_disp){ if (m_disp){
setText(COL_REV,TQString("%1").tqarg(m_Content.revision())); setText(COL_REV,TQString("%1").arg(m_Content.revision()));
setText(COL_AUT,m_Content.tAuthor()); setText(COL_AUT,m_Content.tAuthor());
if (m_Content.date().isValid()) { if (m_Content.date().isValid()) {
setText(COL_DATE,KGlobal::locale()->formatDateTime(m_Content.date())); setText(COL_DATE,KGlobal::locale()->formatDateTime(m_Content.date()));
} }
} }
setText(COL_LINENR,TQString("%1").tqarg(m_Content.lineNumber()+1)); setText(COL_LINENR,TQString("%1").arg(m_Content.lineNumber()+1));
TQString _line = m_Content.tLine(); TQString _line = m_Content.tLine();
_line.replace("\t"," "); _line.replace("\t"," ");
setText(COL_LINE,TQString("%1").tqarg(_line)); setText(COL_LINE,TQString("%1").arg(_line));
} }
int BlameDisplayItem::compare(TQListViewItem *item, int col, bool ascending)const int BlameDisplayItem::compare(TQListViewItem *item, int col, bool ascending)const
@ -182,10 +182,10 @@ int BlameDisplayItem::compare(TQListViewItem *item, int col, bool ascending)cons
return k->m_Content.lineNumber()-m_Content.lineNumber(); return k->m_Content.lineNumber()-m_Content.lineNumber();
} }
void BlameDisplayItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment) void BlameDisplayItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment)
{ {
if (tqalignment & (AlignTop || AlignBottom) == 0) if (alignment & (AlignTop || AlignBottom) == 0)
tqalignment |= AlignVCenter; alignment |= AlignVCenter;
/* don't copy string */ /* don't copy string */
const TQString & str = text(column);; const TQString & str = text(column);;
@ -213,7 +213,7 @@ void BlameDisplayItem::paintCell(TQPainter *p, const TQColorGroup &cg, int colum
if (str.isEmpty()) if (str.isEmpty())
return; return;
p->drawText(BORDER, 0, width - 2*BORDER, height(), tqalignment, str); p->drawText(BORDER, 0, width - 2*BORDER, height(), alignment, str);
} }
class BlameDisplayData class BlameDisplayData
@ -411,7 +411,7 @@ void BlameDisplay_impl::showCommit(BlameDisplayItem*bit)
} }
KDialogBase* dlg = new KDialogBase( KDialogBase* dlg = new KDialogBase(
TQT_TQWIDGET(KApplication::activeModalWidget()), TQT_TQWIDGET(KApplication::activeModalWidget()),
"simplelog",true,TQString(i18n("Logmessage for revision %1").tqarg(bit->rev())), "simplelog",true,TQString(i18n("Logmessage for revision %1").arg(bit->rev())),
KDialogBase::Close); KDialogBase::Close);
TQWidget* Dialog1Layout = dlg->makeVBoxMainWidget(); TQWidget* Dialog1Layout = dlg->makeVBoxMainWidget();
KTextBrowser*ptr = new KTextBrowser(Dialog1Layout); KTextBrowser*ptr = new KTextBrowser(Dialog1Layout);
@ -447,7 +447,7 @@ void BlameDisplay_impl::displayBlame(SimpleLogCb*_cb,const TQString&item,const s
int buttons = KDialogBase::Close|KDialogBase::User1|KDialogBase::User2; int buttons = KDialogBase::Close|KDialogBase::User1|KDialogBase::User2;
KDialogBase * dlg = new KDialogBase( KDialogBase * dlg = new KDialogBase(
TQT_TQWIDGET(KApplication::activeModalWidget()), TQT_TQWIDGET(KApplication::activeModalWidget()),
name,true,TQString(i18n("Blame %1")).tqarg(item),buttons,KDialogBase::Close,false, name,true,TQString(i18n("Blame %1")).arg(item),buttons,KDialogBase::Close,false,
KGuiItem(i18n("Goto line")),KGuiItem(i18n("Log message for revision"),"kdesvnlog")); KGuiItem(i18n("Goto line")),KGuiItem(i18n("Log message for revision"),"kdesvnlog"));
TQWidget* Dialog1Layout = dlg->makeVBoxMainWidget(); TQWidget* Dialog1Layout = dlg->makeVBoxMainWidget();

@ -296,7 +296,7 @@ bool CContextListener::contextSslClientCertPwPrompt (TQString & password,
TQCString npass; TQCString npass;
int keep = 1; int keep = 1;
int res = KPasswordDialog::getPassword(npass, int res = KPasswordDialog::getPassword(npass,
i18n("Enter password for realm %1").tqarg(realm), i18n("Enter password for realm %1").arg(realm),
&keep); &keep);
emit waitShow(false); emit waitShow(false);
if (res!=KPasswordDialog::Accepted) { if (res!=KPasswordDialog::Accepted) {

@ -211,7 +211,7 @@ int CommandExec::exec()
bool found = connect(this,TQT_SIGNAL(executeMe()),this,slotCmd.ascii()); bool found = connect(this,TQT_SIGNAL(executeMe()),this,slotCmd.ascii());
if (!found) { if (!found) {
slotCmd=i18n("Command \"%1\" not implemented or known").tqarg(m_pCPart->cmd); slotCmd=i18n("Command \"%1\" not implemented or known").arg(m_pCPart->cmd);
KMessageBox::sorry(0,slotCmd,i18n("SVN Error")); KMessageBox::sorry(0,slotCmd,i18n("SVN Error"));
return -1; return -1;
} }

@ -26,7 +26,7 @@
<property name="text"> <property name="text">
<string>&lt;p align="right"&gt;Rename&lt;/p&gt;</string> <string>&lt;p align="right"&gt;Rename&lt;/p&gt;</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set> <set>WordBreak|AlignVCenter|AlignLeft</set>
</property> </property>
</widget> </widget>
@ -37,7 +37,7 @@
<property name="text"> <property name="text">
<string>this long text</string> <string>this long text</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>
@ -48,7 +48,7 @@
<property name="text"> <property name="text">
<string>to</string> <string>to</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignLeft</set> <set>AlignVCenter|AlignLeft</set>
</property> </property>
</widget> </widget>
@ -67,7 +67,7 @@
<property name="text"> <property name="text">
<string>/there/</string> <string>/there/</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -34,7 +34,7 @@
<property name="text"> <property name="text">
<string>Type of repository:</string> <string>Type of repository:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -74,7 +74,7 @@
<property name="text"> <property name="text">
<string>Path to repository:</string> <string>Path to repository:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -42,7 +42,7 @@
<property name="text"> <property name="text">
<string>Repository to dump:</string> <string>Repository to dump:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -53,7 +53,7 @@
<property name="text"> <property name="text">
<string>Dump into:</string> <string>Dump into:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -118,7 +118,7 @@
<property name="text"> <property name="text">
<string>End revision:</string> <string>End revision:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -129,7 +129,7 @@
<property name="text"> <property name="text">
<string>Start revision:</string> <string>Start revision:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -44,7 +44,7 @@ EditProperty_impl::EditProperty_impl(TQWidget *parent, const char *name)
fileComments += i18n("If present, make the file executable.<br>" fileComments += i18n("If present, make the file executable.<br>"
"This property can not be set on a directory. " "This property can not be set on a directory. "
"A non-recursive attempt will fail, and a recursive attempt " "A non-recursive attempt will fail, and a recursive attempt "
"will set the property only on the file tqchildren of the folder."); "will set the property only on the file children of the folder.");
fileComments += i18n("Keywords to be expanded into the contents of a file.<br>" fileComments += i18n("Keywords to be expanded into the contents of a file.<br>"
"They can be inserted into documents by placing a keyword anchor " "They can be inserted into documents by placing a keyword anchor "
"which is formatted as $KeywordName$.<br>" "which is formatted as $KeywordName$.<br>"
@ -80,7 +80,7 @@ EditProperty_impl::EditProperty_impl(TQWidget *parent, const char *name)
dirComments += i18n("If present, make the file executable.<br>" dirComments += i18n("If present, make the file executable.<br>"
"This property can not be set on a directory. " "This property can not be set on a directory. "
"A non-recursive attempt will fail, and a recursive attempt " "A non-recursive attempt will fail, and a recursive attempt "
"will set the property only on the file tqchildren of the folder."); "will set the property only on the file children of the folder.");
/* TRANSLATORS: Do not translate "example" in the URL because this is according /* TRANSLATORS: Do not translate "example" in the URL because this is according
TRANSLATORS: to http://www.rfc-editor.org/rfc/rfc2606.txt a reserved URL.*/ TRANSLATORS: to http://www.rfc-editor.org/rfc/rfc2606.txt a reserved URL.*/
dirComments += i18n("A newline separated list of module specifiers, each " dirComments += i18n("A newline separated list of module specifiers, each "

@ -144,7 +144,7 @@ void FileListViewItem::refreshStatus(bool childs,TQPtrList<SvnItem>*exclude,bool
it = static_cast<FileListViewItem*>(it->nextSibling()); it = static_cast<FileListViewItem*>(it->nextSibling());
} }
} }
tqrepaint(); repaint();
} }
void FileListViewItem::makePixmap() void FileListViewItem::makePixmap()
@ -192,7 +192,7 @@ void FileListViewItem::update()
setText(COL_STATUS,infoText()); setText(COL_STATUS,infoText());
setText(COL_LAST_AUTHOR,cmtAuthor()); setText(COL_LAST_AUTHOR,cmtAuthor());
setText(COL_LAST_DATE,KGlobal::locale()->formatDateTime(fullDate())); setText(COL_LAST_DATE,KGlobal::locale()->formatDateTime(fullDate()));
setText(COL_LAST_REV,TQString("%1").tqarg(cmtRev())); setText(COL_LAST_REV,TQString("%1").arg(cmtRev()));
setText(COL_IS_LOCKED,lockOwner()); setText(COL_IS_LOCKED,lockOwner());
} }
@ -247,11 +247,11 @@ SvnItem* FileListViewItem::getParentItem()const
return temp->fullName(); return temp->fullName();
} }
void FileListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment) void FileListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment)
{ {
bool colors = Kdesvnsettings::colored_state(); bool colors = Kdesvnsettings::colored_state();
if (!colors||m_bgColor==NONE) { if (!colors||m_bgColor==NONE) {
KListViewItem::paintCell(p,cg,column,width,tqalignment); KListViewItem::paintCell(p,cg,column,width,alignment);
return; return;
} }
TQColorGroup _cg = cg; TQColorGroup _cg = cg;
@ -285,7 +285,7 @@ void FileListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int colum
_bgColor = Kdesvnsettings::color_need_lock(); _bgColor = Kdesvnsettings::color_need_lock();
break; break;
default: default:
KListViewItem::paintCell(p,cg,column,width,tqalignment); KListViewItem::paintCell(p,cg,column,width,alignment);
return; return;
break; break;
} }
@ -301,7 +301,7 @@ void FileListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int colum
_cg.setColor(TQColorGroup::Base,_bgColor); _cg.setColor(TQColorGroup::Base,_bgColor);
} }
} }
TQListViewItem::paintCell(p, _cg, column, width, tqalignment); TQListViewItem::paintCell(p, _cg, column, width, alignment);
} }
const svn::Revision&FileListViewItem::correctPeg()const const svn::Revision&FileListViewItem::correctPeg()const

@ -60,7 +60,7 @@ public:
virtual SvnItem* getParentItem()const; virtual SvnItem* getParentItem()const;
virtual FileListViewItem*fItem(){return this;} virtual FileListViewItem*fItem(){return this;}
virtual void setStat(const svn::StatusPtr&); virtual void setStat(const svn::StatusPtr&);
virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment); virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment);
virtual void setOpen(bool o); virtual void setOpen(bool o);
virtual void setOpenNoBlock(bool o); virtual void setOpenNoBlock(bool o);

@ -110,7 +110,7 @@ void FillCacheThread::run()
rl.fillCache(Head.revnum()); rl.fillCache(Head.revnum());
} }
i=Head.revnum(); i=Head.revnum();
m_SvnContextListener->contextNotify(i18n("Cache filled up to revision %1").tqarg(i)); m_SvnContextListener->contextNotify(i18n("Cache filled up to revision %1").arg(i));
} }
} catch (const svn::Exception&e) { } catch (const svn::Exception&e) {
m_SvnContextListener->contextNotify(e.msg()); m_SvnContextListener->contextNotify(e.msg());

@ -64,7 +64,7 @@
<property name="text"> <property name="text">
<string>Enter URL:</string> <string>Enter URL:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -71,7 +71,7 @@ void Propertylist::displayList(const svn::PathPropertiesMapListPtr&propList,bool
} }
} }
viewport()->setUpdatesEnabled(true); viewport()->setUpdatesEnabled(true);
viewport()->tqrepaint(); viewport()->repaint();
} }
void Propertylist::clear() void Propertylist::clear()

@ -412,28 +412,28 @@ const TQString&RevGraphView::getLabelstring(const TQString&nodeName)
TQString res; TQString res;
switch (it1.data().Action) { switch (it1.data().Action) {
case 'D': case 'D':
res = i18n("Deleted at revision %1").tqarg(it1.data().rev); res = i18n("Deleted at revision %1").arg(it1.data().rev);
break; break;
case 'A': case 'A':
res = i18n("Added at revision %1 as %2") res = i18n("Added at revision %1 as %2")
.tqarg(it1.data().rev) .arg(it1.data().rev)
.tqarg(it1.data().name); .arg(it1.data().name);
break; break;
case 'C': case 'C':
case 1: case 1:
res = i18n("Copied to %1 at revision %2").tqarg(it1.data().name).tqarg(it1.data().rev); res = i18n("Copied to %1 at revision %2").arg(it1.data().name).arg(it1.data().rev);
break; break;
case 2: case 2:
res = i18n("Renamed to %1 at revision %2").tqarg(it1.data().name).tqarg(it1.data().rev); res = i18n("Renamed to %1 at revision %2").arg(it1.data().name).arg(it1.data().rev);
break; break;
case 'M': case 'M':
res = i18n("Modified at revision %1").tqarg(it1.data().rev); res = i18n("Modified at revision %1").arg(it1.data().rev);
break; break;
case 'R': case 'R':
res = i18n("Replaced at revision %1").tqarg(it1.data().rev); res = i18n("Replaced at revision %1").arg(it1.data().rev);
break; break;
default: default:
res=i18n("Revision %1").tqarg(it1.data().rev); res=i18n("Revision %1").arg(it1.data().rev);
break; break;
} }
m_LabelMap[nodeName]=res; m_LabelMap[nodeName]=res;
@ -450,7 +450,7 @@ void RevGraphView::dumpRevtree()
TQTextStream* stream = dotTmpFile->textStream(); TQTextStream* stream = dotTmpFile->textStream();
if (!stream) { if (!stream) {
showText(i18n("Could not open tempfile %1 for writing.").tqarg(dotTmpFile->name())); showText(i18n("Could not open tempfile %1 for writing.").arg(dotTmpFile->name()));
return; return;
} }
@ -481,7 +481,7 @@ void RevGraphView::dumpRevtree()
for (it1=m_Tree.begin();it1!=m_Tree.end();++it1) { for (it1=m_Tree.begin();it1!=m_Tree.end();++it1) {
*stream << " " << it1.key() *stream << " " << it1.key()
<< "[ " << "[ "
<< "tqshape=box, " << "shape=box, "
<< "label=\""<<getLabelstring(it1.key())<<"\"," << "label=\""<<getLabelstring(it1.key())<<"\","
<< "];\n"; << "];\n";
for (unsigned j=0;j<it1.data().targets.count();++j) { for (unsigned j=0;j<it1.data().targets.count();++j) {
@ -501,9 +501,9 @@ void RevGraphView::dumpRevtree()
if (!renderProcess->start(KProcess::NotifyOnExit,KProcess::Stdout)) { if (!renderProcess->start(KProcess::NotifyOnExit,KProcess::Stdout)) {
TQString arguments; TQString arguments;
for (unsigned c=0;c<renderProcess->args().count();++c) { for (unsigned c=0;c<renderProcess->args().count();++c) {
arguments+=TQString(" %1").tqarg(renderProcess->args()[c].data()); arguments+=TQString(" %1").arg(renderProcess->args()[c].data());
} }
TQString error = i18n("Could not start process \"%1\".").tqarg(arguments); TQString error = i18n("Could not start process \"%1\".").arg(arguments);
showText(error); showText(error);
renderProcess=0; renderProcess=0;
//delete renderProcess;< //delete renderProcess;<
@ -542,19 +542,19 @@ TQString RevGraphView::toolTip(const TQString&_nodename,bool full)const
res = TQString("<html><body>"); res = TQString("<html><body>");
if (!full) { if (!full) {
res+=TQString("<b>%1</b>").tqarg(it.data().name); res+=TQString("<b>%1</b>").arg(it.data().name);
res += i18n("<br>Revision: %1<br>Author: %2<br>Date: %3<br>Log: %4</html>") res += i18n("<br>Revision: %1<br>Author: %2<br>Date: %3<br>Log: %4</html>")
.tqarg(it.data().rev) .arg(it.data().rev)
.tqarg(it.data().Author) .arg(it.data().Author)
.tqarg(it.data().Date) .arg(it.data().Date)
.tqarg(sm); .arg(sm);
} else { } else {
res+="<table><tr><th colspan=\"2\"><b>"+it.data().name+"</b></th></tr>"; res+="<table><tr><th colspan=\"2\"><b>"+it.data().name+"</b></th></tr>";
res+=rstart; res+=rstart;
res+=i18n("<b>Revision</b>%1%2%3").tqarg(csep).tqarg(it.data().rev).tqarg(rend); res+=i18n("<b>Revision</b>%1%2%3").arg(csep).arg(it.data().rev).arg(rend);
res+=rstart+i18n("<b>Author</b>%1%2%3").tqarg(csep).tqarg(it.data().Author).tqarg(rend); res+=rstart+i18n("<b>Author</b>%1%2%3").arg(csep).arg(it.data().Author).arg(rend);
res+=rstart+i18n("<b>Date</b>%1%2%3").tqarg(csep).tqarg(it.data().Date).tqarg(rend); res+=rstart+i18n("<b>Date</b>%1%2%3").arg(csep).arg(it.data().Date).arg(rend);
res+=rstart+i18n("<b>Log</b>%1%2%3").tqarg(csep).tqarg(sm).tqarg(rend); res+=rstart+i18n("<b>Log</b>%1%2%3").arg(csep).arg(sm).arg(rend);
res+="</table></body></html>"; res+="</table></body></html>";
} }
return res; return res;

@ -104,13 +104,13 @@ bool RtreeData::getLogs(const TQString&reposRoot,const svn::Revision&startr,cons
} else if (Kdesvnsettings::network_on()) { } else if (Kdesvnsettings::network_on()) {
m_Client->log(reposRoot,endr,startr,m_OldHistory,startr,true,false,0); m_Client->log(reposRoot,endr,startr,m_OldHistory,startr,true,false,0);
} else { } else {
KMessageBox::error(0,i18n("Could not retrieve logs, reason:\n%1").tqarg(i18n("No logcache possible due broken database and networking not allowed."))); KMessageBox::error(0,i18n("Could not retrieve logs, reason:\n%1").arg(i18n("No logcache possible due broken database and networking not allowed.")));
return false; return false;
} }
} }
} catch (const svn::Exception&ce) { } catch (const svn::Exception&ce) {
kdDebug()<<ce.msg() << endl; kdDebug()<<ce.msg() << endl;
KMessageBox::error(0,i18n("Could not retrieve logs, reason:\n%1").tqarg(ce.msg())); KMessageBox::error(0,i18n("Could not retrieve logs, reason:\n%1").arg(ce.msg()));
return false; return false;
} }
return true; return true;
@ -138,7 +138,7 @@ RevisionTree::RevisionTree(svn::Client*aClient,
kdDebug()<<"Origin: "<<origin << endl; kdDebug()<<"Origin: "<<origin << endl;
m_Data->progress=new KProgressDialog( m_Data->progress=new KProgressDialog(
parent,"progressdlg",i18n("Scanning logs"),i18n("Scanning the logs for %1").tqarg(origin),true); parent,"progressdlg",i18n("Scanning logs"),i18n("Scanning the logs for %1").arg(origin),true);
m_Data->progress->setMinimumDuration(100); m_Data->progress->setMinimumDuration(100);
m_Data->progress->show(); m_Data->progress->show();
m_Data->progress->setAllowCancel(true); m_Data->progress->setAllowCancel(true);
@ -237,7 +237,7 @@ bool RevisionTree::topDownScan()
break; break;
} }
label = i18n("%1<br>Check change entry %2 of %3") label = i18n("%1<br>Check change entry %2 of %3")
.tqarg(olabel).tqarg(i).tqarg(m_Data->m_OldHistory[j].changedPaths.count()); .arg(olabel).arg(i).arg(m_Data->m_OldHistory[j].changedPaths.count());
m_Data->progress->setLabel(label); m_Data->progress->setLabel(label);
kapp->processEvents(); kapp->processEvents();
} }
@ -278,7 +278,7 @@ bool RevisionTree::topDownScan()
cancel=true; cancel=true;
break; break;
} }
label = i18n("%1<br>Check change entry %2 of %3").tqarg(olabel).tqarg(i).tqarg(m_Data->m_OldHistory[j].changedPaths.count()); label = i18n("%1<br>Check change entry %2 of %3").arg(olabel).arg(i).arg(m_Data->m_OldHistory[j].changedPaths.count());
m_Data->progress->setLabel(label); m_Data->progress->setLabel(label);
kapp->processEvents(); kapp->processEvents();
} }
@ -331,7 +331,7 @@ bool RevisionTree::topDownScan()
cancel=true; cancel=true;
break; break;
} }
label = i18n("%1<br>Check change entry %2 of %3").tqarg(olabel).tqarg(i).tqarg(m_Data->m_OldHistory[j].changedPaths.count()); label = i18n("%1<br>Check change entry %2 of %3").arg(olabel).arg(i).arg(m_Data->m_OldHistory[j].changedPaths.count());
m_Data->progress->setLabel(label); m_Data->progress->setLabel(label);
kapp->processEvents(); kapp->processEvents();
} }
@ -364,7 +364,7 @@ static TQString uniqueNodeName(long rev,const TQString&path)
res.replace("\"","_quot_"); res.replace("\"","_quot_");
res.replace(" ","_space_"); res.replace(" ","_space_");
TQString n; n.sprintf("%05ld",rev); TQString n; n.sprintf("%05ld",rev);
res = "\""+n+TQString("_%1\"").tqarg(res); res = "\""+n+TQString("_%1\"").arg(res);
return res; return res;
} }

@ -31,7 +31,7 @@
<property name="text"> <property name="text">
<string>Destination folder:</string> <string>Destination folder:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -58,7 +58,7 @@
<property name="text"> <property name="text">
<string>Repository to copy:</string> <string>Repository to copy:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter|AlignRight</set> <set>WordBreak|AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -81,7 +81,7 @@ bool Importdir_logmsg::createDir()
void Importdir_logmsg::createDirboxDir(const TQString & which) void Importdir_logmsg::createDirboxDir(const TQString & which)
{ {
m_createDirBox->setText(i18n("Create subdir %1 on import").tqarg(which.isEmpty()?i18n("(Last part)"):which)); m_createDirBox->setText(i18n("Create subdir %1 on import").arg(which.isEmpty()?i18n("(Last part)"):which));
} }
#include "importdir_logmsg.moc" #include "importdir_logmsg.moc"

@ -706,7 +706,7 @@ bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _parent)
if (ownupdates) { if (ownupdates) {
kdDebug()<<"Enable update"<<endl; kdDebug()<<"Enable update"<<endl;
viewport()->setUpdatesEnabled(true); viewport()->setUpdatesEnabled(true);
viewport()->tqrepaint(); viewport()->repaint();
} }
return true; return true;
} }
@ -723,7 +723,7 @@ void kdesvnfilelist::insertDirs(FileListViewItem * _parent,svn::StatusEntries&dl
for (it = dlist.begin();it!=dlist.end();++it) { for (it = dlist.begin();it!=dlist.end();++it) {
/* if (_t.elapsed()>300) { /* if (_t.elapsed()>300) {
viewport()->setUpdatesEnabled(true); viewport()->setUpdatesEnabled(true);
viewport()->tqrepaint(); viewport()->repaint();
viewport()->setUpdatesEnabled(false); viewport()->setUpdatesEnabled(false);
_t.restart(); _t.restart();
}*/ }*/
@ -1103,7 +1103,7 @@ void kdesvnfilelist::slotItemDoubleClicked(TQListViewItem*item)
} }
} else { } else {
if ( KRun::runCommand(feditor + " " + fki->kdeName(rev).prettyURL()) <= 0) { if ( KRun::runCommand(feditor + " " + fki->kdeName(rev).prettyURL()) <= 0) {
KMessageBox::error(this,i18n("Failed: %1 %2").tqarg(feditor).tqarg(fki->fullName())); KMessageBox::error(this,i18n("Failed: %1 %2").arg(feditor).arg(fki->fullName()));
} }
} }
} }
@ -1273,7 +1273,7 @@ void kdesvnfilelist::refreshCurrentTree()
if (item->fullName()==baseUri()) { if (item->fullName()==baseUri()) {
if (!refreshItem(item)) { if (!refreshItem(item)) {
setUpdatesEnabled(true); setUpdatesEnabled(true);
viewport()->tqrepaint(); viewport()->repaint();
return; return;
} else { } else {
refreshRecursive(item); refreshRecursive(item);
@ -1286,7 +1286,7 @@ void kdesvnfilelist::refreshCurrentTree()
} }
kdDebug()<<"Refresh time: "<<t.elapsed()<<" ms"<<endl; kdDebug()<<"Refresh time: "<<t.elapsed()<<" ms"<<endl;
setUpdatesEnabled(true); setUpdatesEnabled(true);
viewport()->tqrepaint(); viewport()->repaint();
TQTimer::singleShot(1,this,TQT_SLOT(readSupportData())); TQTimer::singleShot(1,this,TQT_SLOT(readSupportData()));
//m_pList->startScan(); //m_pList->startScan();
} }
@ -1301,7 +1301,7 @@ void kdesvnfilelist::refreshCurrent(SvnItem*cur)
setUpdatesEnabled(false); setUpdatesEnabled(false);
refreshRecursive(cur->fItem()); refreshRecursive(cur->fItem());
setUpdatesEnabled(true); setUpdatesEnabled(true);
viewport()->tqrepaint(); viewport()->repaint();
} }
bool kdesvnfilelist::refreshRecursive(FileListViewItem*_parent,bool down) bool kdesvnfilelist::refreshRecursive(FileListViewItem*_parent,bool down)
@ -1657,7 +1657,7 @@ void kdesvnfilelist::contentsDragMoveEvent( TQDragMoveEvent* event)
if (tmpRect!=m_pList->mOldDropHighlighter) { if (tmpRect!=m_pList->mOldDropHighlighter) {
cleanHighLighter(); cleanHighLighter();
m_pList->mOldDropHighlighter=tmpRect; m_pList->mOldDropHighlighter=tmpRect;
viewport()->tqrepaint(tmpRect); viewport()->repaint(tmpRect);
kapp->processEvents(); kapp->processEvents();
} }
} }
@ -1683,7 +1683,7 @@ void kdesvnfilelist::cleanHighLighter()
if (m_pList->mOldDropHighlighter.isValid()) { if (m_pList->mOldDropHighlighter.isValid()) {
TQRect rect=m_pList->mOldDropHighlighter; TQRect rect=m_pList->mOldDropHighlighter;
m_pList->mOldDropHighlighter=TQRect(); m_pList->mOldDropHighlighter=TQRect();
viewport()->tqrepaint(rect, true); viewport()->repaint(rect, true);
} }
} }
@ -2600,7 +2600,7 @@ void kdesvnfilelist::_dirwatchTimeout()
m_pList->dirItems.clear(); m_pList->dirItems.clear();
viewport()->setUpdatesEnabled(true); viewport()->setUpdatesEnabled(true);
if (repaintit) { if (repaintit) {
// viewport()->tqrepaint(); // viewport()->repaint();
} }
} }
@ -2758,7 +2758,7 @@ void kdesvnfilelist::slotSettingsChanged()
if (m_pList->reReadSettings()) { if (m_pList->reReadSettings()) {
refreshCurrentTree(); refreshCurrentTree();
} else { } else {
viewport()->tqrepaint(); viewport()->repaint();
} }
enableActions(); enableActions();
sort(); sort();
@ -2783,7 +2783,7 @@ void kdesvnfilelist::slotRelocate()
path = k->fullName(); path = k->fullName();
fromUrl = k->Url(); fromUrl = k->Url();
CheckoutInfo_impl*ptr; CheckoutInfo_impl*ptr;
KDialogBase * dlg = createDialog(&ptr,i18n("Relocate path %1").tqarg(path),true,"relocate_dlg"); KDialogBase * dlg = createDialog(&ptr,i18n("Relocate path %1").arg(path),true,"relocate_dlg");
if (dlg) { if (dlg) {
ptr->setStartUrl(fromUrl); ptr->setStartUrl(fromUrl);
ptr->disableAppend(true); ptr->disableAppend(true);
@ -3087,8 +3087,8 @@ void kdesvnfilelist::slotUnfoldTree()
} }
setFocus(); setFocus();
setUpdatesEnabled(true); setUpdatesEnabled(true);
viewport()->tqrepaint(); viewport()->repaint();
tqrepaint(); repaint();
m_SvnWrapper->slotCancel(false); m_SvnWrapper->slotCancel(false);
} }

@ -31,7 +31,7 @@
<property name="text"> <property name="text">
<string>Load into folder:</string> <string>Load into folder:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">
@ -48,7 +48,7 @@
<property name="text"> <property name="text">
<string>Dump file:</string> <string>Dump file:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -64,7 +64,7 @@
<property name="text"> <property name="text">
<string>Load into repository:</string> <string>Load into repository:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -52,7 +52,7 @@
<property name="text"> <property name="text">
<string>Source 1:</string> <string>Source 1:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -68,7 +68,7 @@
<property name="text"> <property name="text">
<string>Source 2:</string> <string>Source 2:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -79,7 +79,7 @@
<property name="text"> <property name="text">
<string>Output to:</string> <string>Output to:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -184,11 +184,11 @@ void StopDlg::slotNetProgres(long long int current, long long int max)
TQString s1 = helpers::ByteToString()(current); TQString s1 = helpers::ByteToString()(current);
if (max > -1 && max != m_NetBar->totalSteps()) { if (max > -1 && max != m_NetBar->totalSteps()) {
TQString s2 = helpers::ByteToString()(max); TQString s2 = helpers::ByteToString()(max);
m_NetBar->setFormat(i18n("%1 of %2").tqarg(s1).tqarg(s2)); m_NetBar->setFormat(i18n("%1 of %2").arg(s1).arg(s2));
m_NetBar->setTotalSteps(max); m_NetBar->setTotalSteps(max);
} }
if (max == -1) { if (max == -1) {
m_NetBar->setFormat(i18n("%1 transferred.").tqarg(s1)); m_NetBar->setFormat(i18n("%1 transferred.").arg(s1));
m_NetBar->setTotalSteps(current+1); m_NetBar->setTotalSteps(current+1);
} }
m_NetBar->setValue(current); m_NetBar->setValue(current);

@ -442,7 +442,7 @@ void SvnActions::makeTree(const TQString&what,const svn::Revision&_rev,const svn
} }
kdDebug()<<"Logs for "<<reposRoot<<endl; kdDebug()<<"Logs for "<<reposRoot<<endl;
TQWidget*disp; TQWidget*disp;
KDialogBase dlg(m_Data->m_ParentList->realWidget(),"historylist",true,i18n("History of %1").tqarg(info.url().mid(reposRoot.length())), KDialogBase dlg(m_Data->m_ParentList->realWidget(),"historylist",true,i18n("History of %1").arg(info.url().mid(reposRoot.length())),
KDialogBase::Ok, KDialogBase::Ok,
KDialogBase::Ok,true); KDialogBase::Ok,true);
TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget(); TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget();
@ -599,7 +599,7 @@ void SvnActions::slotMakeCat(const svn::Revision&start, const TQString&what, con
TQByteArray co = file.readAll(); TQByteArray co = file.readAll();
if (co.size()) { if (co.size()) {
KDialogBase*dlg = createDialog(&ptr,TQString(i18n("Content of %1")).tqarg(disp),false,"cat_display_dlg"); KDialogBase*dlg = createDialog(&ptr,TQString(i18n("Content of %1")).arg(disp),false,"cat_display_dlg");
if (dlg) { if (dlg) {
ptr->setFont(KGlobalSettings::fixedFont()); ptr->setFont(KGlobalSettings::fixedFont());
ptr->setWordWrap(TQTextEdit::NoWrap); ptr->setWordWrap(TQTextEdit::NoWrap);
@ -1031,7 +1031,7 @@ bool SvnActions::makeCommit(const svn::Targets&targets)
return false; return false;
} }
EMIT_REFRESH; EMIT_REFRESH;
emit sendNotify(i18n("Committed revision %1.").tqarg(nnum.toString())); emit sendNotify(i18n("Committed revision %1.").arg(nnum.toString()));
return true; return true;
} }
@ -1232,7 +1232,7 @@ void SvnActions::makeDiffinternal(const TQString&p1,const svn::Revision&r1,const
TQByteArray ex; TQByteArray ex;
KTempDir tdir; KTempDir tdir;
tdir.setAutoDelete(true); tdir.setAutoDelete(true);
TQString tn = TQString("%1/%2").tqarg(tdir.name()).tqarg("/svndiff"); TQString tn = TQString("%1/%2").arg(tdir.name()).arg("/svndiff");
bool ignore_content = Kdesvnsettings::diff_ignore_content(); bool ignore_content = Kdesvnsettings::diff_ignore_content();
TQWidget*parent = p?p:m_Data->m_ParentList->realWidget(); TQWidget*parent = p?p:m_Data->m_ParentList->realWidget();
TQStringList extraOptions; TQStringList extraOptions;
@ -1296,7 +1296,7 @@ void SvnActions::makeNorecDiff(const TQString&p1,const svn::Revision&r1,const TQ
KTempDir tdir; KTempDir tdir;
tdir.setAutoDelete(true); tdir.setAutoDelete(true);
kdDebug()<<"Non recourse diff"<<endl; kdDebug()<<"Non recourse diff"<<endl;
TQString tn = TQString("%1/%2").tqarg(tdir.name()).tqarg("/svndiff"); TQString tn = TQString("%1/%2").arg(tdir.name()).arg("/svndiff");
bool ignore_content = Kdesvnsettings::diff_ignore_content(); bool ignore_content = Kdesvnsettings::diff_ignore_content();
try { try {
StopDlg sdlg(m_Data->m_SvnContextListener,_p?_p:m_Data->m_ParentList->realWidget(),0,"Diffing","Diffing - hit cancel for abort"); StopDlg sdlg(m_Data->m_SvnContextListener,_p?_p:m_Data->m_ParentList->realWidget(),0,"Diffing","Diffing - hit cancel for abort");
@ -1511,7 +1511,7 @@ void SvnActions::makeAdd(bool rec)
++liter; ++liter;
if (cur->isVersioned()) { if (cur->isVersioned()) {
KMessageBox::error(m_Data->m_ParentList->realWidget(),i18n("<center>The entry<br>%1<br>is versioned - break.</center>") KMessageBox::error(m_Data->m_ParentList->realWidget(),i18n("<center>The entry<br>%1<br>is versioned - break.</center>")
.tqarg(cur->fullName())); .arg(cur->fullName()));
return; return;
} }
items.push_back(svn::Path(cur->fullName())); items.push_back(svn::Path(cur->fullName()));
@ -1721,7 +1721,7 @@ void SvnActions::slotRevert()
while ((cur=liter.current())!=0){ while ((cur=liter.current())!=0){
if (!cur->isVersioned()) { if (!cur->isVersioned()) {
KMessageBox::error(m_Data->m_ParentList->realWidget(),i18n("<center>The entry<br>%1<br>is not versioned - break.</center>") KMessageBox::error(m_Data->m_ParentList->realWidget(),i18n("<center>The entry<br>%1<br>is not versioned - break.</center>")
.tqarg(cur->fullName())); .arg(cur->fullName()));
return; return;
} }
displist.append(cur->fullName()); displist.append(cur->fullName());
@ -2178,7 +2178,7 @@ bool SvnActions::makeMove(const TQString&Old,const TQString&New,bool force)
return false; return false;
} }
if (nnum != svn::Revision::UNDEFINED) { if (nnum != svn::Revision::UNDEFINED) {
emit sendNotify(i18n("Committed revision %1.").tqarg(nnum.toString())); emit sendNotify(i18n("Committed revision %1.").arg(nnum.toString()));
} }
EMIT_REFRESH; EMIT_REFRESH;
return true; return true;

@ -190,7 +190,7 @@ void SvnFileTip::drawContents( TQPainter *p )
} }
if ( m_corners[m_corner].isNull()) if ( m_corners[m_corner].isNull())
m_corners[m_corner].load( locate( "data", TQString::fromLatin1( "konqueror/pics/%1.png" ).tqarg( names[m_corner] ) ) ); m_corners[m_corner].load( locate( "data", TQString::fromLatin1( "konqueror/pics/%1.png" ).arg( names[m_corner] ) ) );
TQPixmap &pix = m_corners[m_corner]; TQPixmap &pix = m_corners[m_corner];

@ -100,7 +100,7 @@ LogListViewItem::LogListViewItem(KListView*_parent,const svn::LogEntry&_entry)
setMultiLinesEnabled(false); setMultiLinesEnabled(false);
_revision=_entry.revision; _revision=_entry.revision;
fullDate=svn::DateTime(_entry.date); fullDate=svn::DateTime(_entry.date);
setText(COL_REV,TQString("%1").tqarg(_revision)); setText(COL_REV,TQString("%1").arg(_revision));
setText(COL_AUTHOR,_entry.author); setText(COL_AUTHOR,_entry.author);
setText(COL_DATE,helpers::sub2qt::apr_time2qtString(_entry.date)); setText(COL_DATE,helpers::sub2qt::apr_time2qtString(_entry.date));
_message = _entry.message; _message = _entry.message;
@ -154,7 +154,7 @@ LogChangePathItem::LogChangePathItem(KListView*parent,const svn::LogChangePathEn
_source = e.copyFromPath; _source = e.copyFromPath;
if (e.copyFromRevision>-1) if (e.copyFromRevision>-1)
{ {
setText(2,i18n("%1 at revision %2").tqarg(e.copyFromPath).tqarg(e.copyFromRevision)); setText(2,i18n("%1 at revision %2").arg(e.copyFromPath).arg(e.copyFromRevision));
} }
} }
@ -262,7 +262,7 @@ void SvnLogDlgImp::dispLog(const svn::SharedPointer<svn::LogEntriesMap>&_log,con
m_Entries = _log; m_Entries = _log;
kdDebug()<<"What: "<<what << endl; kdDebug()<<"What: "<<what << endl;
if (!what.isEmpty()){ if (!what.isEmpty()){
setCaption(i18n("SVN Log of %1").tqarg(what)); setCaption(i18n("SVN Log of %1").arg(what));
} else { } else {
setCaption(i18n("SVN Log")); setCaption(i18n("SVN Log"));
} }
@ -444,9 +444,9 @@ void SvnLogDlgImp::saveSize()
TQRect desk = TQApplication::desktop()->screenGeometry(scnum); TQRect desk = TQApplication::desktop()->screenGeometry(scnum);
KConfigGroupSaver cs(Kdesvnsettings::self()->config(), groupName); KConfigGroupSaver cs(Kdesvnsettings::self()->config(), groupName);
TQSize sizeToSave = size(); TQSize sizeToSave = size();
Kdesvnsettings::self()->config()->writeEntry( TQString::fromLatin1("Width %1").tqarg( desk.width()), Kdesvnsettings::self()->config()->writeEntry( TQString::fromLatin1("Width %1").arg( desk.width()),
TQString::number( sizeToSave.width()), true, false); TQString::number( sizeToSave.width()), true, false);
Kdesvnsettings::self()->config()->writeEntry( TQString::fromLatin1("Height %1").tqarg( desk.height()), Kdesvnsettings::self()->config()->writeEntry( TQString::fromLatin1("Height %1").arg( desk.height()),
TQString::number( sizeToSave.height()), true, false); TQString::number( sizeToSave.height()), true, false);
} }
@ -458,8 +458,8 @@ TQSize SvnLogDlgImp::dialogSize()
w = sizeHint().width(); w = sizeHint().width();
h = sizeHint().height(); h = sizeHint().height();
KConfigGroupSaver cs(Kdesvnsettings::self()->config(), groupName); KConfigGroupSaver cs(Kdesvnsettings::self()->config(), groupName);
w = Kdesvnsettings::self()->config()->readNumEntry( TQString::fromLatin1("Width %1").tqarg( desk.width()), w ); w = Kdesvnsettings::self()->config()->readNumEntry( TQString::fromLatin1("Width %1").arg( desk.width()), w );
h = Kdesvnsettings::self()->config()->readNumEntry( TQString::fromLatin1("Height %1").tqarg( desk.height()), h ); h = Kdesvnsettings::self()->config()->readNumEntry( TQString::fromLatin1("Height %1").arg( desk.height()), h );
return( TQSize( w, h ) ); return( TQSize( w, h ) );
} }

@ -188,9 +188,9 @@ void ThreadContextListener::contextProgress(long long int current, long long int
TQString s1 = helpers::ByteToString()(current); TQString s1 = helpers::ByteToString()(current);
if (max>-1) { if (max>-1) {
TQString s2 = helpers::ByteToString()(max); TQString s2 = helpers::ByteToString()(max);
msg = i18n("%1 of %2 transferred.").tqarg(s1).tqarg(s2); msg = i18n("%1 of %2 transferred.").arg(s1).arg(s2);
} else { } else {
msg = i18n("%1 transferred.").tqarg(s1); msg = i18n("%1 transferred.").arg(s1);
} }
_notify->msg = msg; _notify->msg = msg;
ev->setData((void*)_notify); ev->setData((void*)_notify);

@ -7,6 +7,6 @@ svn::cache::DatabaseException::DatabaseException(const TQString&msg,int aNumber)
: Exception(msg),m_number(aNumber) : Exception(msg),m_number(aNumber)
{ {
if (aNumber>-1) { if (aNumber>-1) {
setMessage(TQString("(Code %1) %2").tqarg(aNumber).tqarg(msg)); setMessage(TQString("(Code %1) %2").arg(aNumber).arg(msg));
} }
} }

@ -154,7 +154,7 @@ public:
int i = 0; int i = 0;
TQString _key = dbFile; TQString _key = dbFile;
while (TQSqlDatabase::contains(_key)) { while (TQSqlDatabase::contains(_key)) {
_key = TQString("%1-%2").tqarg(dbFile).tqarg(i++); _key = TQString("%1-%2").arg(dbFile).arg(i++);
} }
// qDebug("The repository key is now: %s",_key.TOUTF8().data()); // qDebug("The repository key is now: %s",_key.TOUTF8().data());
TQDataBase _db = TQSqlDatabase::addDatabase(SQLTYPE,_key); TQDataBase _db = TQSqlDatabase::addDatabase(SQLTYPE,_key);

@ -360,15 +360,15 @@ bool svn::cache::ReposLog::log(const svn::Path&what,const svn::Revision&_start,
svn::Revision peg = date2numberRev(_peg,true); svn::Revision peg = date2numberRev(_peg,true);
svn::Revision end = date2numberRev(_end,true); svn::Revision end = date2numberRev(_end,true);
svn::Revision start = date2numberRev(_start,true); svn::Revision start = date2numberRev(_start,true);
TQString query_string = TQString(s_q).tqarg(what.native()).tqarg(what.native()).tqarg((peg==svn::Revision::UNDEFINED?"":TQString(" AND revision<=%1").tqarg(peg.revnum()))); TQString query_string = TQString(s_q).arg(what.native()).arg(what.native()).arg((peg==svn::Revision::UNDEFINED?"":TQString(" AND revision<=%1").arg(peg.revnum())));
if (peg==svn::Revision::UNDEFINED) { if (peg==svn::Revision::UNDEFINED) {
peg = latestCachedRev(); peg = latestCachedRev();
} }
if (!itemExists(peg,what)) { if (!itemExists(peg,what)) {
throw svn::cache::DatabaseException(TQString("Entry '%1' does not exists at revision %2").tqarg(what.native()).tqarg(peg.toString())); throw svn::cache::DatabaseException(TQString("Entry '%1' does not exists at revision %2").arg(what.native()).arg(peg.toString()));
} }
if (limit>0) { if (limit>0) {
query_string+=TQString(" LIMIT %1").tqarg(limit); query_string+=TQString(" LIMIT %1").arg(limit);
} }
TQSqlQuery _q(TQString(),m_Database); TQSqlQuery _q(TQString(),m_Database);
TQSqlQuery _q2(TQString(),m_Database); TQSqlQuery _q2(TQString(),m_Database);
@ -384,7 +384,7 @@ bool svn::cache::ReposLog::log(const svn::Path&what,const svn::Revision&_start,
target[revision].author=_q.value(1).toString(); target[revision].author=_q.value(1).toString();
target[revision].date=_q.value(2).toLongLong(); target[revision].date=_q.value(2).toLongLong();
target[revision].message=_q.value(3).toString(); target[revision].message=_q.value(3).toString();
query_string=s_e.tqarg(revision); query_string=s_e.arg(revision);
_q2.prepare(query_string); _q2.prepare(query_string);
if (!_q2.exec()) { if (!_q2.exec()) {
qDebug("Could not select values: %s",_q2.lastError().text().TOUTF8().data()); qDebug("Could not select values: %s",_q2.lastError().text().TOUTF8().data());
@ -416,7 +416,7 @@ bool svn::cache::ReposLog::itemExists(const svn::Revision&peg,const svn::Path&pa
#if 0 #if 0
static TQString _s1("select revision from changeditems where changeditem='%1' and action='A' and revision<=%2 order by revision desc limit 1"); static TQString _s1("select revision from changeditems where changeditem='%1' and action='A' and revision<=%2 order by revision desc limit 1");
TQSqlQuery _q(TQString(),m_Database); TQSqlQuery _q(TQString(),m_Database);
TQString query_string=TQString(_s1).tqarg(path.native()).tqarg(peg.revnum()); TQString query_string=TQString(_s1).arg(path.native()).arg(peg.revnum());
if (!_q.exec(query_string)) { if (!_q.exec(query_string)) {
qDebug("Could not select values: %s",_q.lastError().text().TOUTF8().data()); qDebug("Could not select values: %s",_q.lastError().text().TOUTF8().data());
qDebug(_q.lastQuery().TOUTF8().data()); qDebug(_q.lastQuery().TOUTF8().data());
@ -429,10 +429,10 @@ bool svn::cache::ReposLog::itemExists(const svn::Revision&peg,const svn::Path&pa
static TQString _s2("select revision from changeditem where changeditem in (%1) and action='D' and revision>%2 and revision<=%3 order by revision desc limit 1"); static TQString _s2("select revision from changeditem where changeditem in (%1) and action='D' and revision>%2 and revision<=%3 order by revision desc limit 1");
TQStringList p_list; TQStringList p_list;
while (_p.length()>0) { while (_p.length()>0) {
p_list.append(TQString("'%1'").tqarg(_p.native())); p_list.append(TQString("'%1'").arg(_p.native()));
_p.removeLast(); _p.removeLast();
} }
query_string=TQString(_s2).tqarg(p_list.join(",")).tqarg(); query_string=TQString(_s2).arg(p_list.join(",")).arg();
#endif #endif
return true; return true;
} }

@ -428,7 +428,7 @@ namespace svn
* @param native_eol Either "LF", "CR" or "CRLF" or NULL. * @param native_eol Either "LF", "CR" or "CRLF" or NULL.
* @param ignore_externals don't process externals definitions as part of this operation. * @param ignore_externals don't process externals definitions as part of this operation.
* @param recurse if true, export recursively.<br> * @param recurse if true, export recursively.<br>
Otherwise, export just the directory represented by from and its immediate non-directory tqchildren. Otherwise, export just the directory represented by from and its immediate non-directory children.
*/ */
virtual svn_revnum_t virtual svn_revnum_t
doExport (const Path & srcPath, doExport (const Path & srcPath,

@ -398,7 +398,7 @@ namespace svn
* @param overwrite overwrite existing files * @param overwrite overwrite existing files
* @param native_eol Either "LF", "CR" or "CRLF" or NULL. * @param native_eol Either "LF", "CR" or "CRLF" or NULL.
* @param ignore_externals don't process externals definitions as part of this operation. * @param ignore_externals don't process externals definitions as part of this operation.
* @param recurse if true, export recursively. Otherwise, export just the directory represented by from and its immediate non-directory tqchildren. * @param recurse if true, export recursively. Otherwise, export just the directory represented by from and its immediate non-directory children.
*/ */
virtual svn_revnum_t virtual svn_revnum_t
doExport (const Path & srcPath, doExport (const Path & srcPath,

@ -130,7 +130,7 @@ namespace svn
close(); close();
TQFile fi(m_outFileName); TQFile fi(m_outFileName);
if (!fi.open(IO_ReadOnly|IO_Raw)) { if (!fi.open(IO_ReadOnly|IO_Raw)) {
throw ClientException(TQString("%1 '%2'").tqarg(fi.errorString()).tqarg(m_outFileName)); throw ClientException(TQString("%1 '%2'").arg(fi.errorString()).arg(m_outFileName));
} }
TQByteArray res = fi.readAll(); TQByteArray res = fi.readAll();

@ -121,7 +121,7 @@ namespace svn
{ {
message += TQString::FROMUTF8("In file "); message += TQString::FROMUTF8("In file ");
message += TQString::FROMUTF8(error->file); message += TQString::FROMUTF8(error->file);
message += TQString(" Line %1").tqarg(error->line); message += TQString(" Line %1").arg(error->line);
} }
} }
while (next != NULL && next->message != NULL) while (next != NULL && next->message != NULL)

@ -15,8 +15,8 @@ int main(int,char**)
m_Svnclient->setContext(m_CurrentContext); m_Svnclient->setContext(m_CurrentContext);
svn::DirEntries dlist; svn::DirEntries dlist;
TQString p = TQString("file://%1").tqarg(TESTREPOPATH); TQString p = TQString("file://%1").arg(TESTREPOPATH);
TQString l = TQString("%1").tqarg(TESTCOPATH); TQString l = TQString("%1").arg(TESTCOPATH);
try { try {
dlist = m_Svnclient->list(svn::Path(p),svn::Revision::HEAD,svn::Revision::HEAD,svn::DepthInfinity,true); dlist = m_Svnclient->list(svn::Path(p),svn::Revision::HEAD,svn::Revision::HEAD,svn::DepthInfinity,true);

@ -52,8 +52,8 @@ namespace svn {
{ {
if (curr_version_string.length()==0) { if (curr_version_string.length()==0) {
curr_version_string = curr_version_string =
TQString("%1.%2.%3.%4").tqarg(svn_client_version()->major).tqarg(svn_client_version()->minor) TQString("%1.%2.%3.%4").arg(svn_client_version()->major).arg(svn_client_version()->minor)
.tqarg(svn_client_version()->patch).tqarg(svn_client_version()->tag); .arg(svn_client_version()->patch).arg(svn_client_version()->tag);
} }
return curr_version_string; return curr_version_string;
} }

Loading…
Cancel
Save