summaryrefslogtreecommitdiffstats
path: root/src/tools/qstring.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-01-11 23:53:50 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-01-11 23:53:50 -0600
commit8b9ae3fbf85093ffc3470654630ca76a25b599ad (patch)
treeeb051dffe44477aff8a191f7678d8abafe272be5 /src/tools/qstring.h
parent9655b0b845a568b61437a9354e98eae9623b7d13 (diff)
downloadqt3-8b9ae3fbf85093ffc3470654630ca76a25b599ad.tar.gz
qt3-8b9ae3fbf85093ffc3470654630ca76a25b599ad.zip
Add vsprintf method to QString
Diffstat (limited to 'src/tools/qstring.h')
-rw-r--r--src/tools/qstring.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/qstring.h b/src/tools/qstring.h
index 8715395..82b8a0e 100644
--- a/src/tools/qstring.h
+++ b/src/tools/qstring.h
@@ -4,6 +4,7 @@
**
** Created : 920609
**
+** Copyright (C) 2015 Timothy Pearson. All rights reserved.
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
**
** This file is part of the tools module of the Qt GUI Toolkit.
@@ -63,6 +64,9 @@
#endif
#endif
+#ifndef QT_NO_SPRINTF
+#include <stdarg.h>
+#endif
/*****************************************************************************
QString class
@@ -454,6 +458,11 @@ public:
__attribute__ ((format (printf, 2, 3)))
#endif
;
+ QString &vsprintf(const char *format, va_list ap)
+#if defined(Q_CC_GNU) && !defined(__INSURE__)
+ __attribute__ ((format (printf, 2, 0)))
+#endif
+ ;
#endif
int find( QChar c, int index=0, bool cs=TRUE ) const;