VirtualBox

Changeset 46537 in vbox for trunk/src


Ignore:
Timestamp:
Jun 13, 2013 3:19:13 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Little cleanup for r86394.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilmContainer.cpp

    r46536 r46537  
    140140{
    141141    /* Translate check-box: */
    142     m_pCheckBox->setText(tr("Screen %1").arg(m_iScreenIndex + 1));
    143     m_pCheckBox->setToolTip(tr("Enable video recording for screen %1.").arg(m_iScreenIndex + 1));
     142    m_pCheckBox->setText(QApplication::translate("UIMachineSettingsDisplay", "Screen %1").arg(m_iScreenIndex + 1));
     143    m_pCheckBox->setToolTip(QApplication::translate("UIMachineSettingsDisplay", "Enable video recording for screen %1.").arg(m_iScreenIndex + 1));
    144144}
    145145
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilmContainer.h

    r46536 r46537  
    3030
    3131/* Forward declarations: */
     32class QVBoxLayout;
    3233class QScrollArea;
    3334class UIFilm;
    34 class QVBoxLayout;
    3535class QCheckBox;
    3636
     
    6262};
    6363
    64 /* QWidget item for UIFilmContainer: */
     64/* QWidget item prototype for UIFilmContainer: */
    6565class UIFilm : public QIWithRetranslateUI<QWidget>
    6666{
     
    7272    UIFilm(int iScreenIndex, BOOL fEnabled, QWidget *pParent = 0);
    7373
    74     /* API: Cehck-box stuff: */
     74    /* API: Check-box stuff: */
    7575    bool checked() const;
    76 
    77 protected:
    78 
    79     /* Helper: Translate stuff: */
    80     void retranslateUi();
    8176
    8277private:
    8378
    84     /* Helper: Prepare stuff: */
     79    /* Handler: Translate stuff: */
     80    void retranslateUi();
     81
     82    /* Helpers: Prepare stuff: */
    8583    void prepare();
    8684    void prepareLayout();
    8785    void prepareCheckBox();
    8886
    89     /* Handler: Layut stuff: */
     87    /* Helper: Layout stuff: */
    9088    QSize minimumSizeHint() const;
    9189
    92     /* Handlers: Paint stuff: */
     90    /* Handler: Paint stuff: */
    9391    void paintEvent(QPaintEvent *pEvent);
    9492
     
    9997    QCheckBox *m_pCheckBox;
    10098};
     99
    101100#endif /* __UIFilmContainer_h__ */
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