Author: tgoettlicher Date: Mon May 19 16:01:19 2008 New Revision: 47674 URL: http://svn.opensuse.org/viewcvs/yast?rev=47674&view=rev Log: Fixed bnc #389745: 'Changed Packages' window not centered Modified: trunk/qt-pkg/package/yast2-qt-pkg.changes trunk/qt-pkg/src/YQPackageSelector.cc trunk/qt-pkg/src/YQPackageSelectorBase.cc trunk/qt-pkg/src/YQPkgChangesDialog.cc trunk/qt-pkg/src/YQPkgChangesDialog.h Modified: trunk/qt-pkg/package/yast2-qt-pkg.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/package/yast2-qt-pkg.chang... ============================================================================== --- trunk/qt-pkg/package/yast2-qt-pkg.changes (original) +++ trunk/qt-pkg/package/yast2-qt-pkg.changes Mon May 19 16:01:19 2008 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon May 19 15:59:53 CEST 2008 - tgoettlicher@suse.de + +- Fixed bnc #389745: 'Changed Packages' window not centered + +------------------------------------------------------------------- Mon May 19 11:50:51 CEST 2008 - dmacvicar@suse.de - cycle status from autoselected to non-selected instead of Modified: trunk/qt-pkg/src/YQPackageSelector.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPackageSelector.cc?r... ============================================================================== --- trunk/qt-pkg/src/YQPackageSelector.cc (original) +++ trunk/qt-pkg/src/YQPackageSelector.cc Mon May 19 16:01:19 2008 @@ -1467,7 +1467,8 @@ _statusFilterView->filter(); } - YQPkgChangesDialog::showChangesDialog( _( "Added Subpackages:" ), + YQPkgChangesDialog::showChangesDialog( this, + _( "Added Subpackages:" ), QRegExp( ".*" + suffix + "$" ), _( "&OK" ), QString::null, // rejectButtonLabel Modified: trunk/qt-pkg/src/YQPackageSelectorBase.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPackageSelectorBase.... ============================================================================== --- trunk/qt-pkg/src/YQPackageSelectorBase.cc (original) +++ trunk/qt-pkg/src/YQPackageSelectorBase.cc Mon May 19 16:01:19 2008 @@ -186,7 +186,8 @@ " have been changed to resolve dependencies:" ) + "<p>"; - YQPkgChangesDialog::showChangesDialog( msg, + YQPkgChangesDialog::showChangesDialog( this, + msg, _( "&OK" ), QString::null, // rejectButtonLabel true ); // showIfEmpty @@ -262,7 +263,7 @@ " have been changed to resolve dependencies:" ) + "<p>"; - if ( YQPkgChangesDialog::showChangesDialog( msg, _( "C&ontinue" ), _( "&Cancel" ) ) + if ( YQPkgChangesDialog::showChangesDialog( this, msg, _( "C&ontinue" ), _( "&Cancel" ) ) == QDialog::Rejected ) return; } Modified: trunk/qt-pkg/src/YQPkgChangesDialog.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPkgChangesDialog.cc?... ============================================================================== --- trunk/qt-pkg/src/YQPkgChangesDialog.cc (original) +++ trunk/qt-pkg/src/YQPkgChangesDialog.cc Mon May 19 16:01:19 2008 @@ -205,12 +205,13 @@ bool -YQPkgChangesDialog::showChangesDialog( const QString & message, +YQPkgChangesDialog::showChangesDialog( QWidget * parent, + const QString & message, const QString & acceptButtonLabel, const QString & rejectButtonLabel, bool showIfListEmpty ) { - YQPkgChangesDialog dialog( 0, + YQPkgChangesDialog dialog( parent, message, acceptButtonLabel, rejectButtonLabel ); @@ -226,13 +227,14 @@ bool -YQPkgChangesDialog::showChangesDialog( const QString & message, +YQPkgChangesDialog::showChangesDialog( QWidget * parent, + const QString & message, const QRegExp & regexp, const QString & acceptButtonLabel, const QString & rejectButtonLabel, bool showIfListEmpty ) { - YQPkgChangesDialog dialog( 0, + YQPkgChangesDialog dialog( parent, message, acceptButtonLabel, rejectButtonLabel ); Modified: trunk/qt-pkg/src/YQPkgChangesDialog.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPkgChangesDialog.h?r... ============================================================================== --- trunk/qt-pkg/src/YQPkgChangesDialog.h (original) +++ trunk/qt-pkg/src/YQPkgChangesDialog.h Mon May 19 16:01:19 2008 @@ -50,7 +50,8 @@ * status ), the dialog is not shown at all ( and returns 'true' ) - unless *'showIfListEmpty' is 'true'. **/ - static bool showChangesDialog( const QString & message, + static bool showChangesDialog( QWidget * parent, + const QString & message, const QString & acceptButtonLabel, const QString & rejectButtonLabel = QString::null, bool showIfListEmpty = false ); @@ -69,7 +70,8 @@ * status ), the dialog is not shown at all ( and returns 'true' ) - unless *'showIfListEmpty' is 'true'. **/ - static bool showChangesDialog( const QString & message, + static bool showChangesDialog( QWidget * parent, + const QString & message, const QRegExp & regexp, const QString & acceptButtonLabel, const QString & rejectButtonLabel = QString::null, -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org