kdialog/knotify and URLs
Thomas Braxton
brax108 at cox.net
Mon Nov 14 22:33:49 GMT 2005
On Monday 14 November 2005 03:03 pm, Kevin Krammer wrote:
>+ int messageBoxOptions = KMessageBox::Notify;
>+ KConfig* config = kapp->config();
>+ if ( config ) {
>+ KConfigGroupSaver groupSaver( config, "General" );
>+ if ( config->readBoolEntry( "AllowLinks", false ) )
>+ messageBoxOptions |= KMessageBox::AllowLink;
>+ }
You might want to change to KConfigGroup, because KConfigGroupSaver is going
away for KDE4, this patch would be forward compatible. If you are changing
3.5 to contain this functionality, 4.0 would be expected to have it.
KConfigGroup cg(config, "General");
if ( cg.readBoolEntry( "AllowLinks", false ) )
messageBoxOptions |= KMessageBox::AllowLink;
Thomas
More information about the kde-core-devel
mailing list