VirtualBox

Ignore:
Timestamp:
May 17, 2018 1:37:11 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt bugref:6769: Adding some flower box comments

File:
1 edited

Legend:

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

    r72240 r72245  
    4343const float UIVMNamePathSelector::s_fPathLabelWidthWeight = 0.65f;
    4444
     45
     46/*********************************************************************************************************************************
     47*   UIPathLabel definition.                                                                                                      *
     48*********************************************************************************************************************************/
     49/** A QLabel extension used to display long texts in a single line with ellipses (if necessary). The client passes
     50 * a maximum width the label can have. If the original text is wider than it is compacted */
    4551class UIPathLabel : public QLabel
    4652{
     
    5258    UIPathLabel(QWidget *parent = 0);
    5359
    54     int maxWidth() const;
     60    int  maxWidth() const;
    5561    void setMaxWidth(int width);
    56     void setText(const QString &text);
     62    void setText(const QString &text) /* override */;
    5763
    5864private:
    5965
    60     /** Compact the text this is not wider than maxWidth */
     66    /** Compact the text so that the label is not wider than maxWidth */
    6167    void compactText();
    6268
    63     int m_maxWidth;
     69    int     m_maxWidth;
    6470    QString m_strOriginalText;
    6571};
     72
     73
     74/*********************************************************************************************************************************
     75*   UIPathLabel implemetation.                                                                                                   *
     76*********************************************************************************************************************************/
    6677
    6778UIPathLabel::UIPathLabel(QWidget *parent /* = 0*/)
     
    100111}
    101112
     113
     114/*********************************************************************************************************************************
     115*   UIVMNamePathSelector implemetation.                                                                                          *
     116*********************************************************************************************************************************/
    102117
    103118UIVMNamePathSelector::UIVMNamePathSelector(QWidget *pParent /* = 0 */)
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