From 478c44bab75c1fead904d3cf7b82ccebc37ba3a4 Mon Sep 17 00:00:00 2001 From: coolo Date: Fri, 7 Dec 2007 07:06:35 +0000 Subject: [PATCH] the wizard is now fullscreen git-svn-id: http://svn.opensuse.org/svn/yast/trunk/qt4@42775 e0cc52ee-31ee-0310-8b87-e83c4596d67c --- src/YQUI_core.cc | 3 +-- src/YQWizard.cc | 4 ++++ theme/style.qss | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/YQUI_core.cc b/src/YQUI_core.cc index 61dee73..d33e34d 100644 --- a/src/YQUI_core.cc +++ b/src/YQUI_core.cc @@ -130,7 +130,6 @@ void YQUI::init_ui() _main_win = new QWidget( 0, Qt::Window ); // parent, wflags _main_win->setFocusPolicy( Qt::StrongFocus ); _main_win->setObjectName( "main_window" ); - _styler->registerWidget( _main_win ); _main_win->resize( _default_size ); @@ -491,7 +490,7 @@ void YQUI::userInputTimeout() void YQUI::showDialog( YDialog * dialog ) { QWidget * qw = (QWidget *) dialog->widgetRep(); - + if ( qw ) { qw->show(); diff --git a/src/YQWizard.cc b/src/YQWizard.cc index c3d5fa9..846b4f9 100644 --- a/src/YQWizard.cc +++ b/src/YQWizard.cc @@ -90,6 +90,8 @@ YQWizard::YQWizard( YWidget * parent, , _abortButtonLabel( abortButtonLabel ) , _nextButtonLabel( nextButtonLabel ) { + setObjectName( "wizard" ); + QHBoxLayout* layout = new QHBoxLayout( this ); layout->setSpacing( 0 ); layout->setMargin( 0 ); @@ -130,6 +132,8 @@ YQWizard::YQWizard( YWidget * parent, layout->addLayout( layoutSideBar( this ) ); layout->addWidget( layoutWorkArea( this ) ); + + QY2Styler::self()->registerWidget( this ); } diff --git a/theme/style.qss b/theme/style.qss index 9e8738f..e6519b4 100644 --- a/theme/style.qss +++ b/theme/style.qss @@ -1,4 +1,4 @@ -/* Background: main_window background-1024x768.png */ +/* Background: wizard background-1024x768.png */ /* Background: work_area g22503.png */ /* Background: steps rect2174.png */ -- 2.39.2