VirtualBox

Changeset 91242 in vbox


Ignore:
Timestamp:
Sep 15, 2021 10:09:24 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6143. Tooltip changes on viso creator and UIToolBox.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoBrowserBase.cpp

    r91235 r91242  
    4545    void updateLineEditText(const QString &strText);
    4646
    47 
    4847protected:
    4948
     
    9594{
    9695    if (m_pExpandButton)
    97         m_pExpandButton->setToolTip(QApplication::translate("UIVisoCreator", "Click to show/hide the tree view"));
     96        m_pExpandButton->setToolTip(QApplication::translate("UIVisoCreator", "Click to show/hide the tree view."));
     97    if (m_pLineEdit)
     98        m_pLineEdit->setToolTip(QApplication::translate("UIVisoCreator", "Shows the current location."));
    9899}
    99100
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp

    r86233 r91242  
    143143    if (m_pRenameAction)
    144144        m_pRenameAction->setToolTip(QApplication::translate("UIVisoCreator", "Rename the selected object"));
     145    if (m_pButtonBox && m_pButtonBox->button(QDialogButtonBox::Ok))
     146        m_pButtonBox->button(QDialogButtonBox::Ok)->setText(QApplication::translate("UIVisoCreator", "C&reate"));
    145147}
    146148
     
    326328        m_pMainLayout->addWidget(m_pButtonBox, 4, 3, 1, 5, Qt::AlignRight);
    327329    }
    328 
    329330}
    330331
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBox.cpp

    r90333 r91242  
    6767*********************************************************************************************************************************/
    6868
    69 class UIToolBoxPage : public QWidget
     69class UIToolBoxPage : public QIWithRetranslateUI<QWidget>
    7070{
    7171
     
    8080    UIToolBoxPage(bool fEnableCheckBoxEnabled = false, QWidget *pParent = 0);
    8181    void setTitle(const QString &strTitle);
    82     /* @p pWidget's ownership is transferred to the page. */
    83     void setWidget(QWidget *pWidget);
    8482    void setTitleBackgroundColor(const QColor &color);
    8583    void setExpanded(bool fExpanded);
     
    9492
    9593    virtual bool eventFilter(QObject *pWatched, QEvent *pEvent) /* override */;
     94    virtual void retranslateUi() /* override final */;
    9695
    9796private slots:
     
    103102    void prepare(bool fEnableCheckBoxEnabled);
    104103    void setExpandCollapseIcon();
     104    /* @p pWidget's ownership is transferred to the page. */
     105    void setWidget(QWidget *pWidget);
    105106
    106107    bool         m_fExpanded;
     
    116117    QIcon        m_expandCollapseIcon;
    117118    UIToolPageButton *m_pTitleButton;
     119    friend class UIToolBox;
    118120};
    119121
     
    162164
    163165UIToolBoxPage::UIToolBoxPage(bool fEnableCheckBoxEnabled /* = false */, QWidget *pParent /* = 0 */)
    164     :QWidget(pParent)
     166    :QIWithRetranslateUI<QWidget>(pParent)
    165167    , m_fExpanded(false)
    166168    , m_pLayout(0)
     
    223225
    224226    setExpandCollapseIcon();
     227    retranslateUi();
    225228}
    226229
     
    337340}
    338341
     342void UIToolBoxPage::retranslateUi()
     343{
     344    if (m_pTitleButton)
     345        m_pTitleButton->setToolTip(tr("Expands and hides the page"));
     346}
     347
    339348
    340349/*********************************************************************************************************************************
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBox.h

    r90333 r91242  
    5656protected:
    5757
    58     virtual void retranslateUi() /* override */;
     58    virtual void retranslateUi() /* override final */;
    5959
    6060private slots:
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