kdeui: add warning about KSqueezedTextLabel

reminds me of surrogates chopping in QString..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-30 07:40:46 +03:00
parent 02df654093
commit 1c4fa8c32a

View file

@ -36,9 +36,8 @@ class KSqueezedTextLabelPrivate;
* http://www.kde.org/documentation/index.html could be squeezed to
* http://www.kde...ion/index.html
*
* \image html ksqueezedtextlabel.png "KSqueezedTextLabel Widget"
*
* @author Ronny Standtke <Ronny.Standtke@gmx.de>
* @warning do not use to display rich text
*/
class KDEUI_EXPORT KSqueezedTextLabel : public QLabel
{
@ -89,8 +88,8 @@ public Q_SLOTS:
* \code
* KSqueezedTextLabel* squeezed = new KSqueezedTextLabel("text", parent);
* QLabel* label = squeezed;
* label->setText("new text"); // this will not work
* squeezed->setText("new text"); // works as expected
* label->setText("new text"); // this will not work
* squeezed->setText("new text"); // works as expected
* static_cast<KSqueezedTextLabel*>(label)->setText("new text"); // works as expected
* \endcode
* @param mode The new text.