VirtualBox

Changeset 45283 in vbox for trunk/src


Ignore:
Timestamp:
Apr 2, 2013 11:36:53 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt4: gcc 3 warnings, qreal to int.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp

    r45221 r45283  
    474474    int iGroupCountTextWidth = m_infoSizeGroups.width();
    475475    int iMachineCountTextWidth = m_infoSizeMachines.width();
    476     int iMaximumWidth = geometry().width();
     476    int iMaximumWidth = (int)geometry().width();
    477477
    478478    /* Left margin: */
     
    10421042        {
    10431043            /* Prepare variables: */
    1044             int iFullWidth = geometry().width();
     1044            int iFullWidth = (int)geometry().width();
    10451045            int iEnterButtonWidth = m_enterButtonSize.width();
    10461046            int iEnterButtonHeight = m_enterButtonSize.height();
     
    10621062            int iNameEditorY = 1;
    10631063            m_pNameEditor->setPos(iNameEditorX, iNameEditorY);
    1064             m_pNameEditorWidget->resize(geometry().width() - iNameEditorX - iHorizontalMargin, m_pNameEditorWidget->height());
     1064            m_pNameEditorWidget->resize((int)(geometry().width() - iNameEditorX - iHorizontalMargin), m_pNameEditorWidget->height());
    10651065        }
    10661066
     
    17881788    QSizeF openedSize = minimumSizeHint(true);
    17891789    QSizeF closedSize = minimumSizeHint(false);
    1790     int iAdditionalHeight = openedSize.height() - closedSize.height();
     1790    int iAdditionalHeight = (int)(openedSize.height() - closedSize.height());
    17911791    m_pToggleButton->setAnimationRange(0, iAdditionalHeight);
    17921792}
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.cpp

    r44529 r45283  
    290290
    291291    /* Calculate new maximum width for the first row: */
    292     int iFirstRowMaximumWidth = geometry().width();
     292    int iFirstRowMaximumWidth = (int)geometry().width();
    293293    iFirstRowMaximumWidth -= iMargin; /* left margin */
    294294    iFirstRowMaximumWidth -= m_pixmapSize.width(); /* pixmap width */
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