[zypp-commit] r5399 - in /branches/work/updater-kde-refactoring/updater-kde/updater: MainWindow.cpp MainWindow.h osupdaterpopup.cpp osupdaterpopup.h
Author: tgoettlicher Date: Tue Apr 17 12:18:21 2007 New Revision: 5399 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5399&view=rev Log: add "details...." button to update notification (#230121) Modified: branches/work/updater-kde-refactoring/updater-kde/updater/MainWindow.cpp branches/work/updater-kde-refactoring/updater-kde/updater/MainWindow.h branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.cpp branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.h Modified: branches/work/updater-kde-refactoring/updater-kde/updater/MainWindow.cpp URL: http://svn.opensuse.org/viewcvs/zypp/branches/work/updater-kde-refactoring/updater-kde/updater/MainWindow.cpp?rev=5399&r1=5398&r2=5399&view=diff ============================================================================== --- branches/work/updater-kde-refactoring/updater-kde/updater/MainWindow.cpp (original) +++ branches/work/updater-kde-refactoring/updater-kde/updater/MainWindow.cpp Tue Apr 17 12:18:21 2007 @@ -425,4 +425,11 @@ kapp->quit(); } +// +void MainWindow::showMainWindow() +{ + show(); +} + + #include "MainWindow.moc" Modified: branches/work/updater-kde-refactoring/updater-kde/updater/MainWindow.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/work/updater-kde-refactoring/updater-kde/updater/MainWindow.h?rev=5399&r1=5398&r2=5399&view=diff ============================================================================== --- branches/work/updater-kde-refactoring/updater-kde/updater/MainWindow.h (original) +++ branches/work/updater-kde-refactoring/updater-kde/updater/MainWindow.h Tue Apr 17 12:18:21 2007 @@ -182,6 +182,12 @@ */ void populateDone(); + /** + Shows the MainWindow + */ + void showMainWindow(); + + private slots: void slotExit(); Modified: branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.cpp URL: http://svn.opensuse.org/viewcvs/zypp/branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.cpp?rev=5399&r1=5398&r2=5399&view=diff ============================================================================== --- branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.cpp (original) +++ branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.cpp Tue Apr 17 12:18:21 2007 @@ -72,12 +72,17 @@ _installButton = new QPushButton(i18n("Install"),this,"installbutton"); _cancelButton = new QPushButton(i18n("Ignore"),this,"ignorebutton"); + _detailsButton = new QPushButton(i18n("Details..."),this,"detailsbutton"); connect(_cancelButton, SIGNAL(clicked()),this, SLOT(hide())); connect(_installButton, SIGNAL(clicked()),mainWindow, SIGNAL(startInstall())); connect(_installButton, SIGNAL(clicked()),this, SLOT(hide())); + connect(_detailsButton, SIGNAL(clicked()),mainWindow, SLOT(showMainWindow())); + connect(_detailsButton, SIGNAL(clicked()),this, SLOT(hide())); + _buttonLayout->addStretch(); _buttonLayout->addWidget(_installButton); + _buttonLayout->addWidget(_detailsButton); _buttonLayout->addWidget(_cancelButton); _buttonLayout->addStretch(); } Modified: branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.h?rev=5399&r1=5398&r2=5399&view=diff ============================================================================== --- branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.h (original) +++ branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.h Tue Apr 17 12:18:21 2007 @@ -52,6 +52,7 @@ QHBoxLayout *_buttonLayout; QPushButton *_installButton; QPushButton *_cancelButton; + QPushButton *_detailsButton; QLabel * _iconLabel; QBitmap _mask; }; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
tgoettlicher@svn.opensuse.org