Add translator's comments to accessible names of dock widget buttons.
Change-Id: If18126d5b349e072d7057d4e6968d6f91c910c87 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>bb10
parent
97bc287782
commit
68fa04590a
|
|
@ -667,6 +667,7 @@ void QDockWidgetPrivate::updateButtons()
|
|||
button->setIcon(q->style()->standardIcon(QStyle::SP_TitleBarNormalButton, &opt, q));
|
||||
button->setVisible(canFloat && !hideButtons);
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
//: Accessible name for button undocking a dock widget (floating state)
|
||||
button->setAccessibleName(QDockWidget::tr("Float"));
|
||||
button->setAccessibleDescription(QDockWidget::tr("Undocks and re-attaches the dock widget"));
|
||||
#endif
|
||||
|
|
@ -675,6 +676,7 @@ void QDockWidgetPrivate::updateButtons()
|
|||
button->setIcon(q->style()->standardIcon(QStyle::SP_TitleBarCloseButton, &opt, q));
|
||||
button->setVisible(canClose && !hideButtons);
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
//: Accessible name for button closing a dock widget
|
||||
button->setAccessibleName(QDockWidget::tr("Close"));
|
||||
button->setAccessibleDescription(QDockWidget::tr("Closes the dock widget"));
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue