Author: sh-sh-sh Date: Wed Dec 5 20:40:33 2007 New Revision: 42743 URL: http://svn.opensuse.org/viewcvs/yast?rev=42743&view=rev Log: support --noborder Modified: trunk/qt/src/YQMainWinDock.cc trunk/qt/src/YQUI.h trunk/qt/src/YQUI_core.cc Modified: trunk/qt/src/YQMainWinDock.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQMainWinDock.cc?rev=42743... ============================================================================== --- trunk/qt/src/YQMainWinDock.cc (original) +++ trunk/qt/src/YQMainWinDock.cc Wed Dec 5 20:40:33 2007 @@ -41,10 +41,13 @@ YQMainWinDock::YQMainWinDock() - : QWidget( 0, 0, Qt::WType_TopLevel ) // parent, name, WFlags + : QWidget( 0, 0, // parent, name + YQUI::ui()->noBorder() ? + Qt::WStyle_Customize | Qt::WStyle_NoBorder : + Qt::WType_TopLevel ) { setCaption( "YaST2" ); - + setFocusPolicy( QWidget::StrongFocus ); resize( YQUI::ui()->defaultSize( YD_HORIZ ), Modified: trunk/qt/src/YQUI.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQUI.h?rev=42743&r1=42... ============================================================================== --- trunk/qt/src/YQUI.h (original) +++ trunk/qt/src/YQUI.h Wed Dec 5 20:40:33 2007 @@ -131,11 +131,16 @@ YEvent * pendingEvent() const { return _event_handler.pendingEvent(); } /** - * Returns 'true' if defaultsize windows should use the full screen. + * Return 'true' if defaultsize windows should use the full screen. **/ bool fullscreen() const { return _fullscreen; } /** + * Return 'true' if defaultsize windows should not get window manager + * borders / frames. + **/ + bool noBorder() const { return _noborder; } + /** * Returns 'true' if the UI had a fatal error that requires the application * to abort. **/ @@ -489,6 +494,11 @@ bool _fullscreen; /** + * No window border for the main window + **/ + bool _noborder; + + /** * Container for the widget stack. QWidgetStack cannot handle a WFlags * argument, so this needs to be embedded into something else - and a QVBox * at least handles all the sizeHint and resize stuff. Modified: trunk/qt/src/YQUI_core.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQUI_core.cc?rev=42743&... ============================================================================== --- trunk/qt/src/YQUI_core.cc (original) +++ trunk/qt/src/YQUI_core.cc Wed Dec 5 20:40:33 2007 @@ -203,7 +203,8 @@ if ( opt.startsWith( "--" ) ) opt.remove(0, 1); - if ( opt == QString( "-fullscreen" ) ) _fullscreen = true; + if ( opt == QString( "-fullscreen" ) ) _fullscreen = true; + 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 ); // --macro is handled by YUI_component -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org