Disable word wrapping in the Browse Data table when using Qt 5.2.x

In order to work around #1658 (QTBUG-73721) the word wrapping is disabled
when compiling with Qt 5.12.x. This workaround will also allow compiling
with better macOS dark theme support by using Qt 5.12 (see issues #1493 and
#1751 and Qt bug reports: QTBUG-68891 and QTBUG-71020) without affecting
builds using previous versions of Qt.
This commit is contained in:
mgrojo
2019-02-20 23:24:40 +01:00
parent 49ed66b466
commit 8ddfa75929

View File

@@ -374,6 +374,11 @@ ExtendedTableWidget::ExtendedTableWidget(QWidget* parent) :
connect(printAction, &QAction::triggered, [&]() {
openPrintDialog();
});
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
// This work arounds QTBUG-73721 and should be removed or limited in version scope when it is fixed.
setWordWrap(false);
#endif
}
void ExtendedTableWidget::reloadSettings()