VirtualBox

Ignore:
Timestamp:
May 7, 2015 1:53:34 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 6278: Runtime UI: Fetch the extra-data HiDPI optimization type on-the-fly.

File:
1 edited

Legend:

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

    r55724 r55726  
    408408        return;
    409409
    410     /* Take the scale-factor into account: */
     410    /* Take the scaling-optimization type into account: */
    411411    frameBuffer()->setScalingOptimizationType(gEDataManager->scalingOptimizationType(vboxGlobal().managedVMUuid()));
     412
     413    /* Update viewport: */
     414    viewport()->update();
     415}
     416
     417void UIMachineView::sltHandleHiDPIOptimizationChange(const QString &strMachineID)
     418{
     419    /* Skip unrelated machine IDs: */
     420    if (strMachineID != vboxGlobal().managedVMUuid())
     421        return;
     422
     423    /* Take the HiDPI-optimization type into account: */
     424    frameBuffer()->setHiDPIOptimizationType(gEDataManager->hiDPIOptimizationType(vboxGlobal().managedVMUuid()));
    412425
    413426    /* Update viewport: */
     
    694707    connect(gEDataManager, SIGNAL(sigScalingOptimizationTypeChange(const QString&)),
    695708            this, SLOT(sltHandleScalingOptimizationChange(const QString&)));
     709    /* HiDPI-optimization change: */
     710    connect(gEDataManager, SIGNAL(sigHiDPIOptimizationTypeChange(const QString&)),
     711            this, SLOT(sltHandleHiDPIOptimizationChange(const QString&)));
    696712    /* Unscaled HiDPI output mode change: */
    697713    connect(gEDataManager, SIGNAL(sigUnscaledHiDPIOutputModeChange(const QString&)),
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