src/format.h

changeset 1010
969b48eddd6b
parent 968
4b93b7963456
child 1011
4fdd74a04790
equal deleted inserted replaced
1009:85fd352bae45 1010:969b48eddd6b
26 // 26 //
27 class StringFormatArg 27 class StringFormatArg
28 { 28 {
29 public: 29 public:
30 StringFormatArg (const QString& a) : m_text (a) {} 30 StringFormatArg (const QString& a) : m_text (a) {}
31 StringFormatArg (const char& a) : m_text (a) {} 31 StringFormatArg (char a) : m_text (a) {}
32 StringFormatArg (const uchar& a) : m_text (a) {} 32 StringFormatArg (uchar a) : m_text (a) {}
33 StringFormatArg (const QChar& a) : m_text (a) {} 33 StringFormatArg (QChar a) : m_text (a) {}
34 StringFormatArg (int a) : m_text (QString::number (a)) {} 34 StringFormatArg (int a) : m_text (QString::number (a)) {}
35 StringFormatArg (long a) : m_text (QString::number (a)) {} 35 StringFormatArg (long a) : m_text (QString::number (a)) {}
36 StringFormatArg (const float& a) : m_text (QString::number (a)) {} 36 StringFormatArg (float a) : m_text (QString::number (a)) {}
37 StringFormatArg (const double& a) : m_text (QString::number (a)) {} 37 StringFormatArg (double a) : m_text (QString::number (a)) {}
38 StringFormatArg (const Vertex& a) : m_text (a.toString()) {} 38 StringFormatArg (const Vertex& a) : m_text (a.toString()) {}
39 StringFormatArg (const Matrix& a) : m_text (a.toString()) {} 39 StringFormatArg (const Matrix& a) : m_text (a.toString()) {}
40 StringFormatArg (const char* a) : m_text (a) {} 40 StringFormatArg (const char* a) : m_text (a) {}
41 StringFormatArg (LDColor a) : m_text (a.indexString()) {} 41 StringFormatArg (LDColor a) : m_text (a.indexString()) {}
42 42

mercurial