Back to index

salome-gui  6.5.0
Defines
QtHelper.hxx File Reference
#include "Basics_Utils.hxx"
#include <QString>
#include <QDebug>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define QCHARSTAR(qstring)   qstring.toLatin1().data()
#define S2QS(string)   QString(string.c_str())
#define QS2S(qstring)   ToString(QCHARSTAR(qstring))
#define QSTRING(any)   S2QS(ToString(any))
#define GETTEXT(widget)   ToString(QCHARSTAR(widget->text().trimmed()))
#define SETTEXT(widget, str)   widget->setText(str.c_str())
#define QDEBUG   qWarning()
#define QLOG(data)   QDEBUG << "[XSALOME] " << data
#define LOG   QLOG

Define Documentation

#define GETTEXT (   widget)    ToString(QCHARSTAR(widget->text().trimmed()))

Definition at line 44 of file QtHelper.hxx.

#define LOG   QLOG

Definition at line 63 of file QtHelper.hxx.

#define QCHARSTAR (   qstring)    qstring.toLatin1().data()

Definition at line 32 of file QtHelper.hxx.

#define QDEBUG   qWarning()

Definition at line 57 of file QtHelper.hxx.

#define QLOG (   data)    QDEBUG << "[XSALOME] " << data

Definition at line 59 of file QtHelper.hxx.

#define QS2S (   qstring)    ToString(QCHARSTAR(qstring))

Definition at line 36 of file QtHelper.hxx.

#define QSTRING (   any)    S2QS(ToString(any))

Definition at line 37 of file QtHelper.hxx.

#define S2QS (   string)    QString(string.c_str())

Definition at line 34 of file QtHelper.hxx.

#define SETTEXT (   widget,
  str 
)    widget->setText(str.c_str())

Definition at line 45 of file QtHelper.hxx.