summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/alias/aliaspreferences.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:33:51 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-03 15:53:28 +0200
commit4b54ad17739d1075235f2960ecde230a58b5621c (patch)
tree041d34c2e70d106209f97f8607698ccfe907c9b4 /kopete/plugins/alias/aliaspreferences.cpp
parent6f21bc7511005a69a8ef14c2ad4e74857baf59f3 (diff)
downloadtdenetwork-4b54ad17739d1075235f2960ecde230a58b5621c.tar.gz
tdenetwork-4b54ad17739d1075235f2960ecde230a58b5621c.zip
Rename old tq methods that no longer need a unique name
(cherry picked from commit 089118c18533dfa3e6ce5065dbebdd4db94051f1)
Diffstat (limited to 'kopete/plugins/alias/aliaspreferences.cpp')
-rw-r--r--kopete/plugins/alias/aliaspreferences.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kopete/plugins/alias/aliaspreferences.cpp b/kopete/plugins/alias/aliaspreferences.cpp
index 3826b869..694ce451 100644
--- a/kopete/plugins/alias/aliaspreferences.cpp
+++ b/kopete/plugins/alias/aliaspreferences.cpp
@@ -211,7 +211,7 @@ void AliasPreferences::slotPluginLoaded( Kopete::Plugin *plugin )
protocol,
*it,
aliasCommand,
- TQString::tqfromLatin1("Custom alias for %1").tqarg(aliasCommand),
+ TQString::fromLatin1("Custom alias for %1").tqarg(aliasCommand),
Kopete::CommandHandler::UserAlias
);
@@ -241,8 +241,8 @@ void AliasPreferences::slotPluginLoaded( Kopete::Plugin *plugin )
void AliasPreferences::save()
{
KConfig *config = KGlobal::config();
- config->deleteGroup( TQString::tqfromLatin1("AliasPlugin") );
- config->setGroup( TQString::tqfromLatin1("AliasPlugin") );
+ config->deleteGroup( TQString::fromLatin1("AliasPlugin") );
+ config->setGroup( TQString::fromLatin1("AliasPlugin") );
TQStringList aliases;
AliasItem *item = (AliasItem*)preferencesDialog->aliasList->firstChild();
@@ -271,11 +271,11 @@ void AliasPreferences::save()
void AliasPreferences::addAlias( TQString &alias, TQString &command, const ProtocolList &p, uint id )
{
- TQRegExp spaces( TQString::tqfromLatin1("\\s+") );
+ TQRegExp spaces( TQString::fromLatin1("\\s+") );
- if( alias.startsWith( TQString::tqfromLatin1("/") ) )
+ if( alias.startsWith( TQString::fromLatin1("/") ) )
alias = alias.section( '/', 1 );
- if( command.startsWith( TQString::tqfromLatin1("/") ) )
+ if( command.startsWith( TQString::fromLatin1("/") ) )
command = command.section( '/', 1 );
if( id == 0 )
@@ -309,7 +309,7 @@ void AliasPreferences::addAlias( TQString &alias, TQString &command, const Proto
*it,
alias,
command,
- TQString::tqfromLatin1("Custom alias for %1").tqarg(command),
+ TQString::fromLatin1("Custom alias for %1").tqarg(command),
Kopete::CommandHandler::UserAlias,
0,
argc
@@ -328,7 +328,7 @@ void AliasPreferences::slotAddAlias()
if( addDialog.exec() == TQDialog::Accepted )
{
TQString alias = addDialog.alias->text();
- if( alias.startsWith( TQString::tqfromLatin1("/") ) )
+ if( alias.startsWith( TQString::fromLatin1("/") ) )
alias = alias.section( '/', 1 );
if( alias.contains( TQRegExp("[_=]") ) )
@@ -418,7 +418,7 @@ void AliasPreferences::slotEditAlias()
if( editDialog.exec() == TQDialog::Accepted )
{
TQString alias = editDialog.alias->text();
- if( alias.startsWith( TQString::tqfromLatin1("/") ) )
+ if( alias.startsWith( TQString::fromLatin1("/") ) )
alias = alias.section( '/', 1 );
if( alias.contains( TQRegExp("[_=]") ) )
{