VirtualBox

Changeset 63696 in vbox


Ignore:
Timestamp:
Sep 2, 2016 12:49:43 PM (8 years ago)
Author:
vboxsync
Message:

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

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserView.cpp

    r63693 r63696  
    3232
    3333UIGChooserView::UIGChooserView(UIGChooser *pParent)
    34     : QIGraphicsView(pParent)
     34    : QIWithRetranslateUI<QIGraphicsView>(pParent)
    3535    , m_pChooser(pParent)
    3636    , m_iMinimumWidthHint(0)
     
    4747    /* Update scene-rect: */
    4848    updateSceneRect();
     49
     50    /* Translate finally: */
     51    retranslateUi();
    4952}
    5053
     
    9093}
    9194
     95void UIGChooserView::retranslateUi()
     96{
     97    /* Translate this: */
     98    setToolTip(tr("Contains a tree of Virtual Machines and their groups"));
     99}
     100
    92101void UIGChooserView::resizeEvent(QResizeEvent *pEvent)
    93102{
    94103    /* Call to base-class: */
    95     QIGraphicsView::resizeEvent(pEvent);
     104    QIWithRetranslateUI<QIGraphicsView>::resizeEvent(pEvent);
    96105    /* Notify listeners: */
    97106    emit sigResized();
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserView.h

    r63693 r63696  
    2121/* GUI includes: */
    2222#include "QIGraphicsView.h"
     23#include "QIWithRetranslateUI.h"
    2324
    2425/* Forward declarations: */
     
    2728
    2829/* Graphics chooser-view: */
    29 class UIGChooserView : public QIGraphicsView
     30class UIGChooserView : public QIWithRetranslateUI<QIGraphicsView>
    3031{
    3132    Q_OBJECT;
     
    5657private:
    5758
     59    /** Handles translation event. */
     60    virtual void retranslateUi() /* override */;
     61
    5862    /* Handler: Resize-event stuff: */
    5963    void resizeEvent(QResizeEvent *pEvent);
Note: See TracChangeset for help on using the changeset viewer.

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