mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-04 09:59:44 -05:00
Don't crash when only one window is available; Make OpenSpace link again when using Qt6
This commit is contained in:
@@ -98,7 +98,7 @@ elseif (${QT_VERSION_MAJOR} EQUAL 6)
|
||||
|
||||
qt6_wrap_cpp(
|
||||
MOC_FILES
|
||||
${HEADER_SOURCE}
|
||||
${HEADER_FILES}
|
||||
)
|
||||
qt6_add_resources(RESOURCE_FILES resources/resources.qrc)
|
||||
elseif (NOT DEFINED QT_VERSION_MAJOR)
|
||||
|
||||
@@ -277,7 +277,6 @@ sgct::config::Cluster SgctEdit::generateConfiguration() const {
|
||||
window.tags.push_back("GUI");
|
||||
window.draw2D = true;
|
||||
window.draw3D = false;
|
||||
window.isResizable = false;
|
||||
}
|
||||
|
||||
cluster.nodes.push_back(node);
|
||||
|
||||
@@ -127,28 +127,28 @@ void WindowControl::createWidgets(const QColor& windowColor) {
|
||||
_windowName->setToolTip(tip);
|
||||
layout->addWidget(_windowName, 1, 1, 1, 7);
|
||||
}
|
||||
if (_monitorResolutions.size() > 1) {
|
||||
QString tip = "The monitor where this window is located.";
|
||||
QString tip = "The monitor where this window is located.";
|
||||
|
||||
_monitor = new QComboBox;
|
||||
_monitor->addItems(monitorNames(_monitorResolutions));
|
||||
_monitor->setCurrentIndex(_monitorIndexDefault);
|
||||
_monitor->setToolTip(tip);
|
||||
connect(
|
||||
_monitor, qOverload<int>(&QComboBox::currentIndexChanged),
|
||||
[this]() {
|
||||
emit windowChanged(
|
||||
_monitor->currentIndex(),
|
||||
_windowIndex,
|
||||
_windowDimensions
|
||||
);
|
||||
}
|
||||
);
|
||||
if (_monitorResolutions.size() > 1) {
|
||||
QLabel* labelLocation = new QLabel("Monitor");
|
||||
labelLocation->setToolTip(tip);
|
||||
layout->addWidget(labelLocation, 2, 0);
|
||||
|
||||
_monitor = new QComboBox;
|
||||
_monitor->addItems(monitorNames(_monitorResolutions));
|
||||
_monitor->setCurrentIndex(_monitorIndexDefault);
|
||||
_monitor->setToolTip(tip);
|
||||
layout->addWidget(_monitor, 2, 1, 1, 7);
|
||||
connect(
|
||||
_monitor, qOverload<int>(&QComboBox::currentIndexChanged),
|
||||
[this]() {
|
||||
emit windowChanged(
|
||||
_monitor->currentIndex(),
|
||||
_windowIndex,
|
||||
_windowDimensions
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
{
|
||||
QLabel* size = new QLabel("Size");
|
||||
|
||||
Reference in New Issue
Block a user