scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

QStringStdString.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class S >
toString (const QString &x)
 Deal with conversion between QString and std::string/std::wstring in a generic way. More...
 
template<>
std::string toString< std::string > (const QString &x)
 
template<>
std::wstring toString< std::wstring > (const QString &x)
 
template<>
std::u16string toString< std::u16string > (const QString &x)
 
template<>
std::u32string toString< std::u32string > (const QString &x)
 
QString QStringFromString (const std::string &x)
 
QString QStringFromString (const std::wstring &x)
 
QString QStringFromString (const std::u16string &x)
 
QString QStringFromString (const std::u32string &x)
 
QString QStringFromString (const char *x)
 
QString QStringFromString (const wchar_t *x)
 

Function Documentation

◆ QStringFromString() [1/6]

QString QStringFromString ( const char *  x)
inline

Definition at line 19 of file QStringStdString.h.

19 {return QString::fromStdString(x);}

◆ QStringFromString() [2/6]

◆ QStringFromString() [3/6]

QString QStringFromString ( const std::u16string &  x)
inline

Definition at line 17 of file QStringStdString.h.

17 {return QString::fromStdU16String(x);}

◆ QStringFromString() [4/6]

QString QStringFromString ( const std::u32string &  x)
inline

Definition at line 18 of file QStringStdString.h.

18 {return QString::fromStdU32String(x);}

◆ QStringFromString() [5/6]

QString QStringFromString ( const std::wstring &  x)
inline

Definition at line 16 of file QStringStdString.h.

16 {return QString::fromStdWString(x);}

◆ QStringFromString() [6/6]

QString QStringFromString ( const wchar_t *  x)
inline

Definition at line 20 of file QStringStdString.h.

20 {return QString::fromStdWString(x);}

◆ toString()

template<class S >
S toString ( const QString &  x)

Deal with conversion between QString and std::string/std::wstring in a generic way.

Referenced by FitDialog::activateCurve(), Graph::addTimeStamp(), RangeSelectorTool::emitStatusText(), ImportASCIIDialog::initAdvancedOptions(), ScaleDraw::label(), ConfigDialog::languageChange(), DataPickerTool::move(), XmlStreamReader::readAttributeInt(), Column::save(), DataPickerTool::setSelection(), FitDialog::showFitPage(), and AbstractAspect::writeBasicAttributes().

Here is the caller graph for this function:

◆ toString< std::string >()

template<>
std::string toString< std::string > ( const QString &  x)
inline

Definition at line 6 of file QStringStdString.h.

7 {return x.toStdString();}

◆ toString< std::u16string >()

template<>
std::u16string toString< std::u16string > ( const QString &  x)
inline

Definition at line 10 of file QStringStdString.h.

11 {return x.toStdU16String();}

◆ toString< std::u32string >()

template<>
std::u32string toString< std::u32string > ( const QString &  x)
inline

Definition at line 12 of file QStringStdString.h.

13 {return x.toStdU32String();}

◆ toString< std::wstring >()

template<>
std::wstring toString< std::wstring > ( const QString &  x)
inline

Definition at line 8 of file QStringStdString.h.

9 {return x.toStdWString();}