[yast-commit] r47527 - in /trunk/qt: package/yast2-qt.changes src/QY2HelpDialog.cc src/QY2HelpDialog.h src/YQWizard.cc src/YQWizard.h
Author: tgoettlicher Date: Wed May 14 14:52:51 2008 New Revision: 47527 URL: http://svn.opensuse.org/viewcvs/yast?rev=47527&view=rev Log: Improved help popup's usability (bnc #388592) Modified: trunk/qt/package/yast2-qt.changes trunk/qt/src/QY2HelpDialog.cc trunk/qt/src/QY2HelpDialog.h trunk/qt/src/YQWizard.cc trunk/qt/src/YQWizard.h Modified: trunk/qt/package/yast2-qt.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/package/yast2-qt.changes?rev=47527&r1=47526&r2=47527&view=diff ============================================================================== --- trunk/qt/package/yast2-qt.changes (original) +++ trunk/qt/package/yast2-qt.changes Wed May 14 14:52:51 2008 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed May 14 14:51:29 CEST 2008 - tgoettlicher@suse.de + +- Improved help popup's usability (bnc #388592) + +------------------------------------------------------------------- Tue May 13 15:53:53 CEST 2008 - tgoettlicher@suse.de - Fixed setText of YQComboBox (bnc #384713) Modified: trunk/qt/src/QY2HelpDialog.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/QY2HelpDialog.cc?rev=47527&r1=47526&r2=47527&view=diff ============================================================================== --- trunk/qt/src/QY2HelpDialog.cc (original) +++ trunk/qt/src/QY2HelpDialog.cc Wed May 14 14:52:51 2008 @@ -17,6 +17,14 @@ SLOT( searchStringChanged( QString ) ) ); _ui->lineEdit->setFocus( Qt::OtherFocusReason ); + _ui->pushButton->setAutoDefault(false); +} + +void QY2HelpDialog::setHelpText( const QString& helpText ) +{ + _ui->textBrowser->setText( helpText ); + _ui->lineEdit->setText( QString() ); + _ui->lineEdit->setFocus( Qt::OtherFocusReason ); } QY2HelpDialog::~QY2HelpDialog() Modified: trunk/qt/src/QY2HelpDialog.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/QY2HelpDialog.h?rev=47527&r1=47526&r2=47527&view=diff ============================================================================== --- trunk/qt/src/QY2HelpDialog.h (original) +++ trunk/qt/src/QY2HelpDialog.h Wed May 14 14:52:51 2008 @@ -13,6 +13,7 @@ public: QY2HelpDialog( const QString &helpText, QWidget *parent ); ~QY2HelpDialog(); + void setHelpText( const QString &helpText ); public slots: void searchStringChanged( QString ); Modified: trunk/qt/src/YQWizard.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQWizard.cc?rev=47527&r1=47526&r2=47527&view=diff ============================================================================== --- trunk/qt/src/YQWizard.cc (original) +++ trunk/qt/src/YQWizard.cc Wed May 14 14:52:51 2008 @@ -91,6 +91,7 @@ , _backButtonLabel( backButtonLabel ) , _abortButtonLabel( abortButtonLabel ) , _nextButtonLabel( nextButtonLabel ) + , _helpDlg ( NULL ) { setObjectName( "wizard" ); @@ -153,6 +154,9 @@ deleteSteps(); if ( this == main_wizard ) main_wizard = 0; + + if ( _helpDlg ) + delete _helpDlg; } bool YQWizard::isSecondary() const @@ -915,8 +919,15 @@ void YQWizard::showHelp() { - QY2HelpDialog helpDlg( _qHelpText, this ); - helpDlg.exec(); + + if (!_helpDlg) + _helpDlg = new QY2HelpDialog ( _qHelpText, NULL ); + else + _helpDlg->setHelpText( _qHelpText ); + + _helpDlg->show(); + _helpDlg->raise(); + _helpDlg->activateWindow(); } Modified: trunk/qt/src/YQWizard.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQWizard.h?rev=47527&r1=47526&r2=47527&view=diff ============================================================================== --- trunk/qt/src/YQWizard.h (original) +++ trunk/qt/src/YQWizard.h Wed May 14 14:52:51 2008 @@ -48,6 +48,7 @@ class YQAlignment; class YQReplacePoint; class QY2ListView; +class QY2HelpDialog; class YQWizard : public QFrame, public YWizard @@ -523,6 +524,7 @@ QString _currentStepID; QString _qHelpText; + QY2HelpDialog * _helpDlg; QStackedWidget * _sideBar; QWidget * _stepsPanel; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
tgoettlicher@svn.opensuse.org