Changeset 100349 in vbox
- Timestamp:
- Jul 3, 2023 2:58:50 PM (17 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r100094 r100349 2743 2743 if ( pEvent->type() == QEvent::LanguageChange 2744 2744 && pObject->isWidgetType() 2745 && static_cast<QWidget*>(pObject)->isTopLevel())2745 && qobject_cast<QWidget*>(pObject)->isWindow()) 2746 2746 { 2747 2747 /* Catch the language change event before any other widget gets it in -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp
r100346 r100349 764 764 case UIPortForwardingDataType_HostIp: 765 765 case UIPortForwardingDataType_GuestIp: 766 { 767 QFontMetrics fm = qobject_cast<QWidget*>(parent())->fontMetrics(); 766 768 #if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0) 767 return QSize(QApplication::fontMetrics().horizontalAdvance(" 888.888.888.888 "), 768 QApplication::fontMetrics().height()); 769 return QSize(fm.horizontalAdvance(" 888.888.888.888 "), fm.height()); 769 770 #else 770 return QSize( QApplication::fontMetrics().width(" 888.888.888.888 "), QApplication::fontMetrics().height());771 return QSize(fm.width(" 888.888.888.888 "), fm.height()); 771 772 #endif 773 } 772 774 default: return QVariant(); 773 775 }
Note:
See TracChangeset
for help on using the changeset viewer.