diff options
author | Marius Kintel <marius@kintel.net> | 2010-11-07 21:29:34 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2010-11-07 21:29:34 (GMT) |
commit | e0a068a0e8678da426e1edd398feab5f4ea4d0f0 (patch) | |
tree | 5eaa05991d1652fd10692eb7410143d973db6643 /src/value.h | |
parent | d310e364d14444a1a27ae2337cfb4bd0ab061113 (diff) |
Refactored some QString usage in the backend to std::string
Diffstat (limited to 'src/value.h')
-rw-r--r-- | src/value.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/value.h b/src/value.h index 982d5d8..3f9e9ba 100644 --- a/src/value.h +++ b/src/value.h @@ -2,7 +2,6 @@ #define VALUE_H_ #include <QVector> -#include <QString> class Value { @@ -24,14 +23,14 @@ public: double range_begin; double range_step; double range_end; - QString text; + std::string text; Value(); ~Value(); Value(bool v); Value(double v); - Value(const QString &t); + Value(const std::string &t); Value(const Value &v); Value& operator = (const Value &v); @@ -59,11 +58,15 @@ public: bool getv2(double &x, double &y) const; bool getv3(double &x, double &y, double &z) const; - // FIXME: stream support - QString dump() const; + std::string toString() const; private: void reset_undef(); }; +std::ostream &operator<<(std::ostream &stream, const Value &value); + +// FIXME: Doesn't belong here.. +std::ostream &operator<<(std::ostream &stream, const QString &str); + #endif |