Changeset 100158 in vbox
- Timestamp:
- Jun 12, 2023 4:52:22 PM (18 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/medium/viso
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r100156 r100158 296 296 } 297 297 298 void UIVisoCreatorWidget:: paintEvent(QPaintEvent *pEvent)298 void UIVisoCreatorWidget::resizeEvent(QResizeEvent *pEvent) 299 299 { 300 300 Q_UNUSED(pEvent); 301 if (m_pOverlayWidget && m_fShowSettingsDialog) 302 { 303 const QPixmap *pLabelPixmap = m_pOverlayWidget->pixmap(); 304 if (pLabelPixmap) 305 { 306 QPixmap newPixmap = pLabelPixmap->scaled(m_pOverlayWidget->size(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation); 307 if (!newPixmap.isNull()) 308 m_pOverlayWidget->setPixmap(newPixmap); 309 } 310 } 301 311 } 302 312 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h
r100156 r100158 93 93 94 94 virtual void retranslateUi() final override; 95 virtual void paintEvent(QPaintEvent *pEvent) final override;95 virtual void resizeEvent(QResizeEvent *pEvent) final override; 96 96 97 97 private slots:
Note:
See TracChangeset
for help on using the changeset viewer.