Go to the documentation of this file.
20 #ifndef _QT_HELPER_HXX_
21 #define _QT_HELPER_HXX_
28 #include "Basics_Utils.hxx"
32 #define QCHARSTAR(qstring) qstring.toLatin1().data()
34 #define S2QS(string) QString(string.c_str())
36 #define QS2S(qstring) ToString(QCHARSTAR(qstring))
37 #define QSTRING(any) S2QS(ToString(any))
44 #define GETTEXT(widget) ToString(QCHARSTAR(widget->text().trimmed()))
45 #define SETTEXT(widget,str) widget->setText(str.c_str())
57 #define QDEBUG qWarning()
59 #define QLOG(data) QDEBUG << __FILE__<<" ["<<__LINE__<<"] : " << data
65 #endif // __QT_HELPER_H_