[yast-commit] r51704 - in /trunk/qt: package/yast2-qt.changes src/YQDialog.cc
Author: sh-sh-sh Date: Tue Sep 30 16:12:06 2008 New Revision: 51704 URL: http://svn.opensuse.org/viewcvs/yast?rev=51704&view=rev Log: Move keyboard focus to default button (if there is one) when a dialog opens Modified: trunk/qt/package/yast2-qt.changes trunk/qt/src/YQDialog.cc Modified: trunk/qt/package/yast2-qt.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/package/yast2-qt.changes?rev=5... ============================================================================== --- trunk/qt/package/yast2-qt.changes (original) +++ trunk/qt/package/yast2-qt.changes Tue Sep 30 16:12:06 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Sep 30 16:05:58 CEST 2008 - sh@suse.de + +- Move keyboard focus to default button (if there is one) when + a dialog opens + +------------------------------------------------------------------- Fri Sep 26 15:52:16 CEST 2008 - tgoettlicher@suse.de - Fixed bnc #418443: Yast modules windows have no title Modified: trunk/qt/src/YQDialog.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQDialog.cc?rev=51704&... ============================================================================== --- trunk/qt/src/YQDialog.cc (original) +++ trunk/qt/src/YQDialog.cc Tue Sep 30 16:12:06 2008 @@ -496,7 +496,10 @@ yuiDebug() << "New default button: " << _defaultButton << endl; if ( _defaultButton && ! _focusButton ) + { _defaultButton->showAsDefault( true ); + _defaultButton->setKeyboardFocus(); + } } @@ -693,7 +696,6 @@ void YQDialog::focusInEvent( QFocusEvent * event ) { - // The dialog itself doesn't need or want the keyboard focus, but obviously // (since Qt 2.3?) it needs QFocusPolicy::StrongFocus for the default // button mechanism to work. So let's accept the focus and give it to some -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
sh-sh-sh@svn.opensuse.org