summaryrefslogtreecommitdiffstats
path: root/kate/interfaces/katecmd.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kate/interfaces/katecmd.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/interfaces/katecmd.cpp')
-rw-r--r--kate/interfaces/katecmd.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kate/interfaces/katecmd.cpp b/kate/interfaces/katecmd.cpp
index e6a981dd5..569110093 100644
--- a/kate/interfaces/katecmd.cpp
+++ b/kate/interfaces/katecmd.cpp
@@ -36,7 +36,7 @@ KateCmd::~KateCmd ()
bool KateCmd::registerCommand (Kate::Command *cmd)
{
- QStringList l = cmd->cmds ();
+ TQStringList l = cmd->cmds ();
for (uint z=0; z<l.count(); z++)
if (m_dict[l[z]])
@@ -54,18 +54,18 @@ bool KateCmd::registerCommand (Kate::Command *cmd)
bool KateCmd::unregisterCommand (Kate::Command *cmd)
{
- QStringList l;
- QDictIterator<Kate::Command> it(m_dict);
+ TQStringList l;
+ TQDictIterator<Kate::Command> it(m_dict);
for( ; it.current(); ++it )
if (it.current()==cmd) l<<it.currentKey();
- for ( QStringList::Iterator it1 = l.begin(); it1 != l.end(); ++it1 ) {
+ for ( TQStringList::Iterator it1 = l.begin(); it1 != l.end(); ++it1 ) {
m_dict.remove(*it1);
kdDebug()<<"Removed command:"<<*it1<<endl;
}
return true;
}
-Kate::Command *KateCmd::queryCommand (const QString &cmd)
+Kate::Command *KateCmd::queryCommand (const TQString &cmd)
{
// a command can be named ".*[\w\-]+" with the constrain that it must
// contain at least one letter.
@@ -81,7 +81,7 @@ Kate::Command *KateCmd::queryCommand (const QString &cmd)
return m_dict[cmd.left(f)];
}
-QStringList KateCmd::cmds ()
+TQStringList KateCmd::cmds ()
{
return m_cmds;
}
@@ -96,7 +96,7 @@ KateCmd *KateCmd::self ()
return s_self;
}
-void KateCmd::appendHistory( const QString &cmd )
+void KateCmd::appendHistory( const TQString &cmd )
{
if ( !m_history.isEmpty() && m_history.last() == cmd )
return;
@@ -107,10 +107,10 @@ void KateCmd::appendHistory( const QString &cmd )
m_history.append( cmd );
}
-const QString KateCmd::fromHistory( uint index ) const
+const TQString KateCmd::fromHistory( uint index ) const
{
if ( index > m_history.count() - 1 )
- return QString();
+ return TQString();
return m_history[ index ];
}
//END KateCmd
@@ -131,7 +131,7 @@ KateCmdShellCompletion::KateCmdShellCompletion()
m_escape_char = '\\';
}
-QString KateCmdShellCompletion::makeCompletion( const QString &text )
+TQString KateCmdShellCompletion::makeCompletion( const TQString &text )
{
// Split text at the last unquoted space
//
@@ -142,7 +142,7 @@ QString KateCmdShellCompletion::makeCompletion( const QString &text )
return KCompletion::makeCompletion( m_text_compl );
}
-void KateCmdShellCompletion::postProcessMatch( QString *match ) const
+void KateCmdShellCompletion::postProcessMatch( TQString *match ) const
{
if ( match->isNull() )
return;
@@ -150,9 +150,9 @@ void KateCmdShellCompletion::postProcessMatch( QString *match ) const
match->prepend( m_text_start );
}
-void KateCmdShellCompletion::postProcessMatches( QStringList *matches ) const
+void KateCmdShellCompletion::postProcessMatches( TQStringList *matches ) const
{
- for ( QStringList::Iterator it = matches->begin();
+ for ( TQStringList::Iterator it = matches->begin();
it != matches->end(); it++ )
if ( !(*it).isNull() )
(*it).prepend( m_text_start );
@@ -166,12 +166,12 @@ void KateCmdShellCompletion::postProcessMatches( KCompletionMatches *matches ) c
(*it).value().prepend( m_text_start );
}
-void KateCmdShellCompletion::splitText(const QString &text, QString &text_start,
- QString &text_compl) const
+void KateCmdShellCompletion::splitText(const TQString &text, TQString &text_start,
+ TQString &text_compl) const
{
bool in_quote = false;
bool escaped = false;
- QChar p_last_quote_char;
+ TQChar p_last_quote_char;
int last_unquoted_space = -1;
int end_space_len = 0;