VirtualBox

Changeset 38798 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 20, 2011 9:41:10 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74093
Message:

FE/Qt4: suppress typecast warnings.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r38311 r38798  
    813813            double yRatio = scaledSize.isValid() ? (double)pFrameBuffer->height() / (double)scaledSize.height() : 1;
    814814            /* Set scaling if scale-factor is present: */
    815             cpnt.setX(cpnt.x() * xRatio);
    816             cpnt.setY(cpnt.y() * yRatio);
     815            cpnt.setX((int)(cpnt.x() * xRatio));
     816            cpnt.setY((int)(cpnt.y() * yRatio));
    817817
    818818            /* Bound coordinates: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMPreviewWindow.cpp

    r35798 r38798  
    113113QSize UIVMPreviewWindow::sizeHint() const
    114114{
    115     return QSize(220, 220 * 3.0/4.0);
     115    return QSize(220, (int)(220 * 3.0/4.0));
    116116}
    117117
     
    183183        {
    184184            h = h * .8;
    185             font.setPixelSize(h);
     185            font.setPixelSize((int)h);
    186186            painter.setFont(font);
    187187            r = painter.boundingRect(m_vRect, fFlags, strName);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp

    r38311 r38798  
    437437    m_pTableView->setTabKeyNavigation(false);
    438438    m_pTableView->verticalHeader()->hide();
    439     m_pTableView->verticalHeader()->setDefaultSectionSize((int)m_pTableView->verticalHeader()->minimumSectionSize() * 1.33);
     439    m_pTableView->verticalHeader()->setDefaultSectionSize((int)(m_pTableView->verticalHeader()->minimumSectionSize() * 1.33));
    440440    m_pTableView->setSelectionMode(QAbstractItemView::SingleSelection);
    441441    m_pTableView->setContextMenuPolicy(Qt::CustomContextMenu);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette