Changeset View
Changeset View
Standalone View
Standalone View
b/qt4/pinentrydialog.cpp
Context not available. | |||||
{ | { | ||||
_desc->setVisible( !txt.isEmpty() ); | _desc->setVisible( !txt.isEmpty() ); | ||||
_desc->setText( txt ); | _desc->setText( txt ); | ||||
#ifndef QT_NO_ACCESSIBILITY | |||||
_desc->setAccessibleDescription ( txt ); | _desc->setAccessibleDescription ( txt ); | ||||
#endif | |||||
_icon->setPixmap( icon() ); | _icon->setPixmap( icon() ); | ||||
setError( QString::null ); | setError( QString::null ); | ||||
} | } | ||||
Context not available. | |||||
{ | { | ||||
if( !txt.isNull() )_icon->setPixmap( icon( QStyle::SP_MessageBoxCritical ) ); | if( !txt.isNull() )_icon->setPixmap( icon( QStyle::SP_MessageBoxCritical ) ); | ||||
_error->setText( txt ); | _error->setText( txt ); | ||||
#ifndef QT_NO_ACCESSIBILITY | |||||
_error->setAccessibleDescription ( txt ); | _error->setAccessibleDescription ( txt ); | ||||
#endif | |||||
_error->setVisible( !txt.isEmpty() ); | _error->setVisible( !txt.isEmpty() ); | ||||
} | } | ||||
Context not available. | |||||
void PinEntryDialog::setOkText( const QString& txt ) | void PinEntryDialog::setOkText( const QString& txt ) | ||||
{ | { | ||||
_ok->setText( txt ); | _ok->setText( txt ); | ||||
#ifndef QT_NO_ACCESSIBILITY | |||||
_ok->setAccessibleDescription ( txt ); | _ok->setAccessibleDescription ( txt ); | ||||
#endif | |||||
_ok->setVisible( !txt.isEmpty() ); | _ok->setVisible( !txt.isEmpty() ); | ||||
} | } | ||||
void PinEntryDialog::setCancelText( const QString& txt ) | void PinEntryDialog::setCancelText( const QString& txt ) | ||||
{ | { | ||||
_cancel->setText( txt ); | _cancel->setText( txt ); | ||||
#ifndef QT_NO_ACCESSIBILITY | |||||
_cancel->setAccessibleDescription ( txt ); | _cancel->setAccessibleDescription ( txt ); | ||||
#endif | |||||
_cancel->setVisible( !txt.isEmpty() ); | _cancel->setVisible( !txt.isEmpty() ); | ||||
} | } | ||||
Context not available. | |||||
{ | { | ||||
if (_have_quality_bar) { | if (_have_quality_bar) { | ||||
_quality_bar_label->setText( txt ); | _quality_bar_label->setText( txt ); | ||||
#ifndef QT_NO_ACCESSIBILITY | |||||
_quality_bar_label->setAccessibleDescription ( txt ); | _quality_bar_label->setAccessibleDescription ( txt ); | ||||
#endif | |||||
} | } | ||||
} | } | ||||
Context not available. |