summaryrefslogtreecommitdiffstats
path: root/languages/cpp/declarationinfo.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/declarationinfo.h
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/declarationinfo.h')
-rw-r--r--languages/cpp/declarationinfo.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/languages/cpp/declarationinfo.h b/languages/cpp/declarationinfo.h
index f1d28f26..8b55557e 100644
--- a/languages/cpp/declarationinfo.h
+++ b/languages/cpp/declarationinfo.h
@@ -22,16 +22,16 @@
#ifndef DECLARATIONINFO_H
#define DECLARATIONINFO_H
-#include <qstring.h>
+#include <tqstring.h>
struct DeclarationInfo {
class File {
- QString m_file;
+ TQString m_file;
public:
- File( const QString& file = "" ) : m_file( file ) {
+ File( const TQString& file = "" ) : m_file( file ) {
}
- operator QString() const {
+ operator TQString() const {
return m_file;
}
};
@@ -43,15 +43,15 @@ struct DeclarationInfo {
return !name.isEmpty();
}
- QString locationToText() const {
- return QString("line %1 col %2 - line %3 col %4\nfile: %5").arg(startLine).arg(startCol).arg(endLine).arg(endCol).arg(file);
+ TQString locationToText() const {
+ return TQString("line %1 col %2 - line %3 col %4\nfile: %5").arg(startLine).arg(startCol).arg(endLine).arg(endCol).arg(file);
}
- QString toText() const {
+ TQString toText() const {
if( name.isEmpty() ) return "";
- QString ret;
- ret = QString("name: " + name + "\n" ) + locationToText();
+ TQString ret;
+ ret = TQString("name: " + name + "\n" ) + locationToText();
if( !comment.isEmpty() ) {
ret += "\n\"" + comment + "\"";
}
@@ -62,8 +62,8 @@ struct DeclarationInfo {
int endLine, endCol;
File file;
- QString name;
- QString comment;
+ TQString name;
+ TQString comment;
};