VirtualBox

Changeset 71395 in vbox


Ignore:
Timestamp:
Mar 20, 2018 11:40:33 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Small cleanup for QIArrowSplitter.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIArrowSplitter.cpp

    r70523 r71395  
    55
    66/*
    7  * Copyright (C) 2006-2017 Oracle Corporation
     7 * Copyright (C) 2006-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2222/* Qt includes: */
    2323# include <QApplication>
     24# include <QHBoxLayout>
    2425# include <QStyle>
    25 # include <QHBoxLayout>
    2626# include <QTextEdit>
    2727
    2828/* GUI includes: */
    2929# include "QIArrowSplitter.h"
     30# include "QIArrowButtonPress.h"
    3031# include "QIArrowButtonSwitch.h"
    31 # include "QIArrowButtonPress.h"
    3232# include "UIDesktopWidgetWatchdog.h"
    3333# include "UIIconPool.h"
     
    3737
    3838#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    39 
    4039
    4140
     
    5049public:
    5150
    52     /** Constructor, passes @a pParent to the QTextEdit constructor. */
     51    /** Constructs details-browser passing @a pParent to the base-class. */
    5352    QIDetailsBrowser(QWidget *pParent = 0);
    5453
     
    6160    void updateScrollBars();
    6261};
     62
     63
     64/*********************************************************************************************************************************
     65*   Class QIDetailsBrowser implementation.                                                                                       *
     66*********************************************************************************************************************************/
    6367
    6468QIDetailsBrowser::QIDetailsBrowser(QWidget *pParent /* = 0 */)
     
    117121}
    118122
     123
     124/*********************************************************************************************************************************
     125*   Class QIArrowSplitter implementation.                                                                                        *
     126*********************************************************************************************************************************/
    119127
    120128QIArrowSplitter::QIArrowSplitter(QWidget *pParent /* = 0 */)
     
    224232    /* Increase details-list index: */
    225233    ++m_iDetailsIndex;
     234    /* Update details: */
     235    updateDetails();
     236}
     237
     238void QIArrowSplitter::retranslateUi()
     239{
    226240    /* Update details: */
    227241    updateDetails();
     
    313327}
    314328
    315 void QIArrowSplitter::retranslateUi()
    316 {
    317     /* Update details: */
    318     updateDetails();
    319 }
    320 
    321329void QIArrowSplitter::updateDetails()
    322330{
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIArrowSplitter.h

    r69500 r71395  
    55
    66/*
    7  * Copyright (C) 2006-2017 Oracle Corporation
     7 * Copyright (C) 2006-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4343signals:
    4444
    45     /** Notifies listeners about size-hint change: */
     45    /** Notifies listeners about size-hint change. */
    4646    void sigSizeHintChange();
    4747
    4848public:
    4949
    50     /** Constructor, passes @a pParent to the QWidget constructor. */
     50    /** Constructs arrow splitter passing @a pParent to the base-class. */
    5151    QIArrowSplitter(QWidget *pParent = 0);
    5252
     
    7777    void sltSwitchDetailsPageNext();
    7878
     79protected:
     80
     81    /** Handles translation event. */
     82    virtual void retranslateUi() /* override */;
     83
    7984private:
    8085
    81     /** Prepare routine. */
     86    /** Prepares all. */
    8287    void prepare();
    83 
    84     /** Retranslation routine. */
    85     void retranslateUi();
    8688
    8789    /** Updates details. */
    8890    void updateDetails();
    8991
    90     /** Holds the main-layout. */
     92    /** Holds the main-layout instance. */
    9193    QVBoxLayout *m_pMainLayout;
    9294
    93     /** Holds the switch-button. */
     95    /** Holds the switch-button instance. */
    9496    QIArrowButtonSwitch *m_pSwitchButton;
    95     /** Holds the back-button. */
    96     QIArrowButtonPress *m_pBackButton;
    97     /** Holds the next-button. */
    98     QIArrowButtonPress *m_pNextButton;
     97    /** Holds the back-button instance. */
     98    QIArrowButtonPress  *m_pBackButton;
     99    /** Holds the next-button instance. */
     100    QIArrowButtonPress  *m_pNextButton;
    99101
    100102    /** Holds the details-browser. */
    101103    QIDetailsBrowser *m_pDetailsBrowser;
    102104    /** Holds details-list. */
    103     QStringPairList m_details;
     105    QStringPairList   m_details;
    104106    /** Holds details-list index. */
    105     int m_iDetailsIndex;
     107    int               m_iDetailsIndex;
    106108};
    107109
    108110#endif /* !___QIArrowSplitter_h___ */
     111
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