From 8f166ccf4081e624a8d23b21f236151c9dc38f28 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 21 Oct 2015 22:20:13 +0200 Subject: QString: add resize(int, QChar) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will be used in QTextStream to speed up padding processing. [ChangeLog][QtCore][QString] Added resize(int, QChar) overload. Change-Id: Id51f8cdacb167310157100b05cacf20e9a5d2716 Reviewed-by: Topi Reiniƶ Reviewed-by: Olivier Goffart (Woboq GmbH) --- src/corelib/tools/qstring.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/corelib/tools/qstring.h') diff --git a/src/corelib/tools/qstring.h b/src/corelib/tools/qstring.h index 75f94d7f93..9dc770d2c5 100644 --- a/src/corelib/tools/qstring.h +++ b/src/corelib/tools/qstring.h @@ -233,6 +233,7 @@ public: inline int length() const; inline bool isEmpty() const; void resize(int size); + void resize(int size, QChar fillChar); QString &fill(QChar c, int size = -1); void truncate(int pos); -- cgit v1.2.3