From 5400376766ee9abe35a226c9306a359d14ba1841 Mon Sep 17 00:00:00 2001 From: Matthias <github@mpuchner.de> Date: Fri, 11 Dec 2020 18:09:53 +0100 Subject: [PATCH] add TODOs for eventually needed checks on high-dpi devices --- GUI/coregui/mainwindow/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/coregui/mainwindow/mainwindow.cpp b/GUI/coregui/mainwindow/mainwindow.cpp index 1c7de8bd551..0e0c18ee1a3 100644 --- a/GUI/coregui/mainwindow/mainwindow.cpp +++ b/GUI/coregui/mainwindow/mainwindow.cpp @@ -298,7 +298,7 @@ void MainWindow::addView(ViewId id, const QIcon& icon, const QString& title, con QToolButton* btn = createViewSelectionButton(); m_viewSelectionButtonsLayout->insertWidget(id, btn); - btn->setFixedSize(70, 70); // #TODO: High-DPI? + btn->setFixedSize(70, 70); // TODO: check with High-DPI devices! btn->setText(title); btn->setToolTip(tooltip); btn->setIcon(icon); @@ -329,7 +329,7 @@ QToolButton* MainWindow::createViewSelectionButton() const { btn->setCheckable(true); btn->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); - btn->setIconSize({50, 50}); // #TODO: High-DPI? + btn->setIconSize({50, 50}); // TODO: check with High-DPI devices! btn->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); btn->setStyleSheet(viewSelectionButtonStyle); return btn; -- GitLab