summaryrefslogtreecommitdiffstats
path: root/src/options.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 21:30:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 21:30:26 +0000
commit94ddde53d91cbdb554bbe78b108ccbd6a7d7c13a (patch)
tree961f7eb9997011a96d54a249dcb663025f686102 /src/options.cpp
parentdad5420e97a9a56cce014e9380026063ee9d279c (diff)
downloadpotracegui-94ddde53d91cbdb554bbe78b108ccbd6a7d7c13a.tar.gz
potracegui-94ddde53d91cbdb554bbe78b108ccbd6a7d7c13a.zip
TQt4 port potracegui
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/potracegui@1239033 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/options.cpp')
-rw-r--r--src/options.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/options.cpp b/src/options.cpp
index e3aaa71..6945c11 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -13,16 +13,16 @@
#include <map>
using namespace std;
-#include <qstring.h>
+#include <tqstring.h>
Options::Options(): options()
{
}
-void Options::setValue(QString key, QString value) {
+void Options::setValue(TQString key, TQString value) {
if(options.find(key)!=options.end())
options.erase(options.find(key));
- map<QString,QString>::value_type v(key,value);
+ map<TQString,TQString>::value_type v(key,value);
options.insert(v);
}
@@ -34,7 +34,7 @@ void Options::clear() {
options.clear();
}
-QString Options::operator[](QString key) {
+TQString Options::operator[](TQString key) {
if(options.find(key)!=options.end())
return options[key];
else
@@ -80,7 +80,7 @@ void Options::defaultOptions(){
}
void Options::debug() {
- for(map<QString,QString>::iterator i=options.begin(); i!=options.end(); i++)
+ for(map<TQString,TQString>::iterator i=options.begin(); i!=options.end(); i++)
cout << (*i).first << "=" << (*i).second << endl;
}