[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: QDialogButtonBox question
From: Robin Atwood <robin () binro ! org>
Date: 2010-09-29 15:34:05
Message-ID: 201009292234.07759.robin () binro ! org
[Download RAW message or body]
On Wednesday 29 September 2010, Robin Atwood wrote:
> Qt Designer now generates a QDialogButtonBox object when you create a
> dialog. The clicked() signal drives a slot with a QAbstractButton as the
> parameter. Now, unless I have missed something, the only property you have
> to tell which button was clicked is the text. I have been coding
>
> if ( btn->text() == "&OK" ) ...
>
> but now it occurs to me: what about translation? Does that happen later
> when the widget is rendered or must I code i18n("&OK") or what?
Arno, Gerhard -
Thanks guys, I was obviously a bit thrown by the new fangled widget! :) I
should be using the accepted/rejected signals like I always used to.
Cheers
-Robin
--
----------------------------------------------------------------------
Robin Atwood.
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------
>> 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