VirtualBox

Changeset 63726 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 5, 2016 4:23:24 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110502
Message:

FE/Qt: bugref:6899: Accessibility support (step 10): Selector UI: Extend details-view with the translatable stuff, required to be visible by the accessibility interface.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsView.cpp

    r63725 r63726  
    3232
    3333UIGDetailsView::UIGDetailsView(UIGDetails *pParent)
    34     : QIGraphicsView(pParent)
     34    : QIWithRetranslateUI<QIGraphicsView>(pParent)
    3535    , m_pDetails(pParent)
    3636    , m_iMinimumWidthHint(0)
     
    5050    /* Update scene-rect: */
    5151    updateSceneRect();
     52
     53    /* Translate finally: */
     54    retranslateUi();
    5255}
    5356
     
    8588}
    8689
     90void UIGDetailsView::retranslateUi()
     91{
     92    /* Translate this: */
     93    setToolTip(tr("Contains a list of Virtual Machine details"));
     94}
     95
    8796void UIGDetailsView::preparePalette()
    8897{
     
    96105{
    97106    /* Call to base-class: */
    98     QIGraphicsView::resizeEvent(pEvent);
     107    QIWithRetranslateUI<QIGraphicsView>::resizeEvent(pEvent);
    99108    /* Notify listeners: */
    100109    emit sigResized();
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsView.h

    r63725 r63726  
    2121/* GUI includes: */
    2222#include "QIGraphicsView.h"
     23#include "QIWithRetranslateUI.h"
    2324
    2425/* Forward declarations: */
     
    2627
    2728/* Graphics details-view: */
    28 class UIGDetailsView : public QIGraphicsView
     29class UIGDetailsView : public QIWithRetranslateUI<QIGraphicsView>
    2930{
    3031    Q_OBJECT;
     
    5253private:
    5354
     55    /** Handles translation event. */
     56    virtual void retranslateUi() /* override */;
     57
    5458    /* Helper: Prepare stuff: */
    5559    void preparePalette();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette