Author: tgoettlicher Date: Tue Apr 10 16:22:29 2007 New Revision: 5325 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5325&view=rev Log: fix warning message on STDOUT (#224548) Modified: branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.cpp branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.h Modified: branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.cpp URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.cpp?rev=5325&r1=5324&r2=5325&view=diff ============================================================================== --- branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.cpp (original) +++ branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.cpp Tue Apr 10 16:22:29 2007 @@ -107,23 +107,28 @@ //Build GUI, setup system tray and hide GUI initially. void MainWindow::initGUI() { + centralWidget = new QWidget( this ); + setCentralWidget( centralWidget ); + + + KIconLoader *loader = KGlobal::iconLoader(); setIcon(loader->loadIcon(ICON_NAME, KIcon::Small)); - - mainBox = new QVBoxLayout(this); - header = new HeaderWidget(this); - updateList = new QListView(this); - packageDescription = new KTextEdit(this); - - configureButton = new KPushButton(i18n("Add/Remove Update Sources..."), this); - cancelButton = new KPushButton(KStdGuiItem::cancel(), this); - installButton = new KPushButton(KStdGuiItem::ok(), this); + + mainBox = new QVBoxLayout(centralWidget); + header = new HeaderWidget(centralWidget); + updateList = new QListView(centralWidget); + packageDescription = new KTextEdit(centralWidget); + + configureButton = new KPushButton(i18n("Add/Remove Update Sources..."), centralWidget); + cancelButton = new KPushButton(KStdGuiItem::cancel(), centralWidget); + installButton = new KPushButton(KStdGuiItem::ok(), centralWidget); installButton->setText(i18n("Install")); if ( _caps.canSelectIndividualUpdates ) { - selectAllButton = new KPushButton(i18n("Select All"), this); - clearSelectionButton = new KPushButton(i18n("Clear Selection"), this); + selectAllButton = new KPushButton(i18n("Select All"), centralWidget); + clearSelectionButton = new KPushButton(i18n("Clear Selection"), centralWidget); } else { Modified: branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.h?rev=5325&r1=5324&r2=5325&view=diff ============================================================================== --- branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.h (original) +++ branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.h Tue Apr 10 16:22:29 2007 @@ -239,6 +239,9 @@ OSUpdaterPopup *popup; UpdaterCapabilities _caps; + + QWidget *centralWidget; + }; #endif -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org