VirtualBox

Changeset 69526 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 30, 2017 1:04:33 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8400: Media Manager: Adjust layout a bit to avoid choose-location button flickering on media refresh (location became empty for a moment).

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

Legend:

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

    r69519 r69526  
    5858    , m_pTabWidget(0)
    5959    , m_pLabelType(0), m_pComboBoxType(0), m_pErrorPaneType(0)
    60     , m_pLabelLocation(0), m_pEditorLocation(0), m_pButtonLocation(0), m_pErrorPaneLocation(0)
     60    , m_pLabelLocation(0), m_pEditorLocation(0), m_pErrorPaneLocation(0), m_pButtonLocation(0)
    6161    , m_pLabelDescription(0), m_pEditorDescription(0), m_pErrorPaneDescription(0)
    6262    , m_pLabelSize(0), m_pEditorSize(0), m_pErrorPaneSize(0)
     
    340340                }
    341341
     342                /* Create location error pane: */
     343                m_pErrorPaneLocation = new QLabel;
     344                AssertPtrReturnVoid(m_pErrorPaneLocation);
     345                {
     346                    /* Configure label: */
     347                    m_pErrorPaneLocation->setAlignment(Qt::AlignCenter);
     348                    m_pErrorPaneLocation->setPixmap(UIIconPool::iconSet(":/status_error_16px.png")
     349                                                    .pixmap(QSize(iIconMetric, iIconMetric)));
     350                    /* Add into layout: */
     351                    pLayoutLocation->addWidget(m_pErrorPaneLocation);
     352                }
     353
    342354                /* Create location button: */
    343355                m_pButtonLocation = new QIToolButton;
     
    354366                    /* Add into layout: */
    355367                    pLayoutLocation->addWidget(m_pButtonLocation);
    356                 }
    357 
    358                 /* Create location error pane: */
    359                 m_pErrorPaneLocation = new QLabel;
    360                 AssertPtrReturnVoid(m_pErrorPaneLocation);
    361                 {
    362                     /* Configure label: */
    363                     m_pErrorPaneLocation->setAlignment(Qt::AlignCenter);
    364                     m_pErrorPaneLocation->setPixmap(UIIconPool::iconSet(":/status_error_16px.png")
    365                                                     .pixmap(QSize(iIconMetric, iIconMetric)));
    366                     /* Add into layout: */
    367                     pLayoutLocation->addWidget(m_pErrorPaneLocation);
    368368                }
    369369
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDetailsWidget.h

    r69519 r69526  
    299299        /** Holds the location editor. */
    300300        QLineEdit    *m_pEditorLocation;
     301        /** Holds the location error pane. */
     302        QLabel       *m_pErrorPaneLocation;
    301303        /** Holds the location button. */
    302304        QIToolButton *m_pButtonLocation;
    303         /** Holds the location error pane. */
    304         QLabel       *m_pErrorPaneLocation;
    305305
    306306        /** Holds the description label. */
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