From efdff9fd87d8a4789c32de4cd12e4b51a1da03e1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 12 Sep 2020 17:10:19 -0700 Subject: desktop: fix TableView for Qt 5.15 If we set the size on the QPushButton, the button no longer receives any input (tested on macOS). With this change we get an odd visual artifact when clicking on the 'add' button, but it least it works, so this is good enough for the next release. Signed-off-by: Dirk Hohndel --- desktop-widgets/tableview.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'desktop-widgets') diff --git a/desktop-widgets/tableview.cpp b/desktop-widgets/tableview.cpp index 19aaf602b..2a6a2d535 100644 --- a/desktop-widgets/tableview.cpp +++ b/desktop-widgets/tableview.cpp @@ -60,7 +60,10 @@ TableView::TableView(QWidget *parent) : QGroupBox(parent) iconSize = btnSize - 2*min_gap; } plusBtn->setIconSize(QSize(iconSize, iconSize)); +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) + // with Qt 5.15, this leads to an inoperable button plusBtn->resize(btnSize, btnSize); +#endif connect(plusBtn, SIGNAL(clicked(bool)), this, SIGNAL(addButtonClicked())); } -- cgit v1.2.3-70-g09d2