diff options
Diffstat (limited to 'kdelirc/kdelirc/prototype.cpp')
-rw-r--r-- | kdelirc/kdelirc/prototype.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kdelirc/kdelirc/prototype.cpp b/kdelirc/kdelirc/prototype.cpp index 9b0a09b..8e2eedf 100644 --- a/kdelirc/kdelirc/prototype.cpp +++ b/kdelirc/kdelirc/prototype.cpp @@ -10,7 +10,7 @@ // Copyright: See COPYING file that comes with this distribution // // -#include <qregexp.h> +#include <tqregexp.h> #include "prototype.h" @@ -19,7 +19,7 @@ Prototype::Prototype() original = ""; } -Prototype::Prototype(const QString &source) +Prototype::Prototype(const TQString &source) { original = source; parse(); @@ -29,17 +29,17 @@ Prototype::~Prototype() { } -const QString Prototype::argumentList() const +const TQString Prototype::argumentList() const { - QString ret = ""; + TQString ret = ""; for(unsigned i = 0; i < theTypes.count(); i++) ret += (i ? ", " : "") + theTypes[i] + " " + theNames[i]; return ret; } -const QString Prototype::argumentListNN() const +const TQString Prototype::argumentListNN() const { - QString ret = ""; + TQString ret = ""; for(unsigned i = 0; i < theTypes.count(); i++) ret += (i ? ", " : "") + theTypes[i]; return ret; @@ -50,14 +50,14 @@ void Prototype::parse() theNames.clear(); theTypes.clear(); - QRegExp main("^(.*) (\\w[\\d\\w]*)\\((.*)\\)"); - QRegExp parameters("^\\s*([^,\\s]+)(\\s+(\\w[\\d\\w]*))?(,(.*))?$"); + TQRegExp main("^(.*) (\\w[\\d\\w]*)\\((.*)\\)"); + TQRegExp parameters("^\\s*([^,\\s]+)(\\s+(\\w[\\d\\w]*))?(,(.*))?$"); if(main.search(original) == -1) return; theReturn = main.cap(1); theName = main.cap(2); - QString args = main.cap(3); + TQString args = main.cap(3); while(parameters.search(args) != -1) { theTypes += parameters.cap(1); theNames += parameters.cap(3); |