[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore
From: Simon Hausmann <hausmann () kde ! org>
Date: 2006-07-01 21:58:55
Message-ID: 1151791135.217415.16226.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 556911 by hausmann:
- deprecated the pixel squeeze functions and recommend the use of QFontMetrics::elidedText
instead. QFontMetrics::elidedText has the advantage that it is
a) faster
b) actually works with non-latin1 text by not cutting off at any position but
only valid cursor positions
c) uses the unicode ellipsis character if present in the font
M +6 -3 kstringhandler.h
--- trunk/KDE/kdelibs/kdecore/kstringhandler.h #556910:556911
@@ -204,8 +204,9 @@
* @param maxPixels is the maximum pixel length the modified string will have
* If the original string is shorter than "maxlen", it is returned verbatim
* @return the modified string
+ * @deprecated Use QFontMetrics::elidedText instead.
*/
- static QString lPixelSqueeze( const QString & name,
+ static KDE_DEPRECATED QString lPixelSqueeze( const QString & name,
const QFontMetrics& fontMetrics,
int maxPixels );
@@ -237,8 +238,9 @@
* @param maxPixels is the maximum pixel length the modified string will have
* If the original string is shorter than "maxlen", it is returned verbatim
* @return the modified string
+ * @deprecated Use QFontMetrics::elidedText instead.
*/
- static QString cPixelSqueeze( const QString & name,
+ static KDE_DEPRECATED QString cPixelSqueeze( const QString & name,
const QFontMetrics& fontMetrics,
int maxPixels );
@@ -270,8 +272,9 @@
* @param maxPixels is the maximum pixel length the modified string will have
* If the original string is shorter than "maxlen", it is returned verbatim
* @return the modified string
+ * @deprecated Use QFontMetrics::elidedText instead.
*/
- static QString rPixelSqueeze( const QString & name,
+ static KDE_DEPRECATED QString rPixelSqueeze( const QString & name,
const QFontMetrics& fontMetrics,
int maxPixels );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic