diff options
-rw-r--r-- | src/Authoring/Studio/_Win/UI/EditCameraBar.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Authoring/Studio/_Win/UI/EditCameraBar.cpp b/src/Authoring/Studio/_Win/UI/EditCameraBar.cpp index 4f658da4..8705e96f 100644 --- a/src/Authoring/Studio/_Win/UI/EditCameraBar.cpp +++ b/src/Authoring/Studio/_Win/UI/EditCameraBar.cpp @@ -225,9 +225,14 @@ void CEditCameraBar::OnCustomizeToolbar() { // Create the combo box addWidget(m_CameraSelector = new QComboBox); +#if (defined Q_OS_MACOS) + // There is a "selected" icon in the popup, and automatic scaling does not work for some reason + m_CameraSelector->setMinimumContentsLength(tr("Scene Camera View").length() + 1); +#else + m_CameraSelector->setSizeAdjustPolicy(QComboBox::AdjustToContents); +#endif // We need to specify accessibleName and objectName for the combobox, as it's in the toolbar, // and we want to use a different style for it. m_CameraSelector->setAccessibleName(QStringLiteral("cameraSelector")); m_CameraSelector->setObjectName(QStringLiteral("cameraSelector")); - m_CameraSelector->setMinimumWidth(145); } |