78 str = str.arg (StringFormatArg (arg1).text()); |
81 str = str.arg (StringFormatArg (arg1).text()); |
79 formatHelper (str, rest...); |
82 formatHelper (str, rest...); |
80 } |
83 } |
81 |
84 |
82 //! |
85 //! |
83 //! Overload of \c formatHelper with no template args |
86 //! Overload of \c formatHelper() with no template args |
84 //! |
87 //! |
85 static void formatHelper (QString& str) __attribute__ ((unused)); |
88 static void formatHelper (QString& str) __attribute__ ((unused)); |
86 static void formatHelper (QString& str) |
89 static void formatHelper (QString& str) |
87 { |
90 { |
88 (void) str; |
91 (void) str; |
89 } |
92 } |
90 |
93 |
91 //! |
94 //! |
92 //! Format the message with the given args |
95 //! @brief Format the message with the given args. |
|
96 //! |
|
97 //! The formatting ultimately uses QString's arg() method to actually format |
|
98 //! the args so the format string should be prepared accordingly, with %1 |
|
99 //! referring to the first arg, %2 to the second, etc. |
|
100 //! |
93 //! \param fmtstr The string to format |
101 //! \param fmtstr The string to format |
94 //! \param args The args to format with |
102 //! \param args The args to format with |
95 //! \return The formatted string |
103 //! \return The formatted string |
96 //! |
104 //! |
97 template<typename... Args> |
105 template<typename... Args> |