mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-19 18:40:13 -06:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user