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 <dirk@hohndel.org>
This commit is contained in:
parent
a01ab81713
commit
efdff9fd87
@ -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()));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user