Focus the cancel button by default, so that one does not activate compositing by mistake.

BUG: 164150


svn path=/branches/KDE/4.1/kdebase/workspace/; revision=830911
This commit is contained in:
Luboš Luňák 2008-07-11 12:52:21 +00:00
parent 23f072f64a
commit 8c4082609f

View file

@ -52,6 +52,7 @@ KTimerDialog::KTimerDialog( int msec, TimerStyle style, QWidget *parent,
setCaption( caption ); setCaption( caption );
setButtons( (ButtonCodes)buttonMask ); setButtons( (ButtonCodes)buttonMask );
setDefaultButton( defaultButton ); setDefaultButton( defaultButton );
setButtonFocus( defaultButton ); // setDefaultButton() doesn't do this
showButtonSeparator( separator ); showButtonSeparator( separator );
setButtonGuiItem( User1, user1 ); setButtonGuiItem( User1, user1 );
setButtonGuiItem( User2, user2 ); setButtonGuiItem( User2, user2 );