[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Problem with text formatting in dialogs
From: Waldo Bastian <bastian () kde ! org>
Date: 2002-06-08 22:48:22
[Download RAW message or body]
On Saturday 08 June 2002 02:11 pm, Aurélien Gâteau wrote:
> Hi !
>
> I'm in the process of porting my application to KDE3 and I encounter a
> problem which looks simple to solve, but I can't find the way to
> nevertheless.
>
> If I use something like this :
>
> int response=KMessageBox::questionYesNo(
> this,
> i18n("Are you sure you want to delete the folder <b>%1</b> ?"
> ).arg(dirName)
> );
>
> The name of the folder does not appear in bold, I can see the <b> and
> </b> instead... any idea to fix this ?
Put your text in between "<qt> ... </qt>" or "<p> ... </p>" to indicate that
it contains richtext.
Also make sure to escape any arguments that you include in your string in case
you happen to have a dirname that contains "<b>"
Cheers,
Waldo
--
bastian@kde.org | SuSE Labs KDE Developer | bastian@suse.com
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic