Author: sh-sh-sh Date: Fri Aug 22 14:11:31 2008 New Revision: 50331 URL: http://svn.opensuse.org/viewcvs/yast?rev=50331&view=rev Log: Added command line options -gnome-button-order and -kde-button-order Added default spacings for button box widgets Modified: trunk/qt/src/YQUI_core.cc Modified: trunk/qt/src/YQUI_core.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQUI_core.cc?rev=50331&r1=50330&r2=50331&view=diff ============================================================================== --- trunk/qt/src/YQUI_core.cc (original) +++ trunk/qt/src/YQUI_core.cc Fri Aug 22 14:11:31 2008 @@ -39,6 +39,7 @@ #include "YQOptionalWidgetFactory.h" #include "YEvent.h" #include "YCommandLine.h" +#include "YButtonBox.h" #include "YUISymbols.h" #include "utf8.h" @@ -203,6 +204,17 @@ _main_win->hide(); #endif + YButtonBoxMargins buttonBoxMargins; + buttonBoxMargins.left = 8; + buttonBoxMargins.right = 8; + buttonBoxMargins.top = 6; + buttonBoxMargins.bottom = 6; + + buttonBoxMargins.spacing = 4; + buttonBoxMargins.helpButtonExtraSpacing = 16; + YButtonBox::setDefaultMargins( buttonBoxMargins ); + + // Ugly hack as a workaround of bug #121872 (Segfault at program exit // if no Qt style defined): @@ -273,6 +285,8 @@ else if ( opt == QString( "-noborder" ) ) _noborder = true; else if ( opt == QString( "-auto-font" ) ) yqApp()->setAutoFonts( true ); else if ( opt == QString( "-auto-fonts" ) ) yqApp()->setAutoFonts( true ); + else if ( opt == QString( "-gnome-button-order" ) ) YButtonBox::setLayoutPolicy( YButtonBox::gnomeLayoutPolicy() ); + else if ( opt == QString( "-kde-button-order" ) ) YButtonBox::setLayoutPolicy( YButtonBox::kdeLayoutPolicy() ); // --macro is handled by YUI_component else if ( opt == QString( "-help" ) ) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org