VirtualBox

Ignore:
Timestamp:
Oct 8, 2018 1:01:03 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Details pane: No layout margin for UIDetailsModel (it was 0 anyway).

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/details
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsModel.cpp

    r74677 r74680  
    9696{
    9797    /* Prepare variables: */
    98     const int iSceneMargin = data(DetailsModelData_Margin).toInt();
    9998    const QSize viewportSize = paintDevice()->viewport()->size();
    100     const int iViewportWidth = viewportSize.width() - 2 * iSceneMargin;
    10199
    102100    /* Move root: */
    103     m_pRoot->setPos(iSceneMargin, iSceneMargin);
     101    m_pRoot->setPos(0, 0);
    104102    /* Resize root: */
    105     m_pRoot->resize(iViewportWidth, m_pRoot->minimumHeightHint());
     103    m_pRoot->resize(viewportSize.width(), m_pRoot->minimumHeightHint());
    106104    /* Layout root content: */
    107105    m_pRoot->updateLayout();
     
    212210}
    213211
    214 QVariant UIDetailsModel::data(int iKey) const
    215 {
    216     switch (iKey)
    217     {
    218         case DetailsModelData_Margin: return 0;
    219         default: break;
    220     }
    221     return QVariant();
    222 }
    223 
    224212void UIDetailsModel::prepareScene()
    225213{
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsModel.h

    r74677 r74680  
    103103private:
    104104
    105     /* Data enumerator: */
    106     enum DetailsModelData
    107     {
    108         /* Layout hints: */
    109         DetailsModelData_Margin
    110     };
    111 
    112     /* Data provider: */
    113     QVariant data(int iKey) const;
    114 
    115105    /* Helpers: Prepare stuff: */
    116106    void prepareScene();
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