I'm using this fork to contribute features and fixes to the upstream project. In order to create good pull requests, I'm rebasing my feature branches, squashing and reordering commits, etc. If you fork this repository be aware that my development branches may rewrite history without prior notice.
Update Qt API usage to avoid deprecation warnings both in 5.15 and 6.2.
Qt 5.15:
[x] core/UBOpenSankoreImporter.cpp:56: Warnung: ‘static bool QProcess::startDetached(const QString&)’ is deprecated: Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead
[x] web/simplebrowser/tabwidget.cpp:89: Warnung: ‘const QPixmap* QLabel::pixmap() const’ is deprecated: Use the other overload which returns QPixmap by-value
Qt 6.2
[x] adaptors/UBCFFSubsetAdaptor.cpp:658: Warnung: ‘void QTextCharFormat::setFontFamily(const QString&)’ is deprecated: Use setFontFamilies instead
[x] adaptors/UBCFFSubsetAdaptor.cpp:820: Warnung: ‘void QTextCharFormat::setFontFamily(const QString&)’ is deprecated: Use setFontFamilies instead
[x] board/UBBoardView.cpp:351: Warnung: ‘QPoint QTabletEvent::pos() const’ is deprecated: Use position()
[x] board/UBBoardView.cpp:788: Warnung: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position()
[x] board/UBBoardView.cpp:1038, 1059, 1193, 1322, 1393: Warnung: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position()
[x] board/UBBoardView.cpp:1671, 1680: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
[x] core/UBApplication.cpp:251: Warnung: ‘static QString QLibraryInfo::location(QLibraryInfo::LibraryLocation)’ is deprecated: Use path()
[x] document/UBDocumentController.cpp:1486, 1499, 1510, 1529: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
[x] gui/UBBoardThumbnailsView.cpp:318: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
[x] gui/UBDocumentThumbnailWidget.cpp:135, 161, 173, 190: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
[x] gui/UBFeaturesActionBar.cpp:272: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
[x] gui/UBFloatingPalette.cpp:125, 138: Warnung: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition()
[x] gui/UBFeaturesWidget.cpp:424: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
[x] gui/UBMagnifer.cpp:265, 292: Warnung: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition()
[x] gui/UBMainWindow.cpp:77: Warnung: ‘constexpr QKeyCombination operator+(Qt::Modifier, Qt::Key)’ is deprecated: Use operator| instead
[x] gui/UBMousePressFilter.cpp:66, 80: Warnung: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition()
Update Qt API usage to avoid deprecation warnings both in 5.15 and 6.2.
Qt 5.15:
core/UBOpenSankoreImporter.cpp:56: Warnung: ‘static bool QProcess::startDetached(const QString&)’ is deprecated: Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead
web/simplebrowser/tabwidget.cpp:89: Warnung: ‘const QPixmap* QLabel::pixmap() const’ is deprecated: Use the other overload which returns QPixmap by-value
Qt 6.2
adaptors/UBCFFSubsetAdaptor.cpp:658: Warnung: ‘void QTextCharFormat::setFontFamily(const QString&)’ is deprecated: Use setFontFamilies instead
adaptors/UBCFFSubsetAdaptor.cpp:820: Warnung: ‘void QTextCharFormat::setFontFamily(const QString&)’ is deprecated: Use setFontFamilies instead
board/UBBoardView.cpp:351: Warnung: ‘QPoint QTabletEvent::pos() const’ is deprecated: Use position()
board/UBBoardView.cpp:788: Warnung: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position()
board/UBBoardView.cpp:1038, 1059, 1193, 1322, 1393: Warnung: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position()
board/UBBoardView.cpp:1671, 1680: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
core/UBApplication.cpp:251: Warnung: ‘static QString QLibraryInfo::location(QLibraryInfo::LibraryLocation)’ is deprecated: Use path()
document/UBDocumentController.cpp:1486, 1499, 1510, 1529: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
gui/UBBoardThumbnailsView.cpp:318: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
gui/UBDocumentThumbnailWidget.cpp:135, 161, 173, 190: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
gui/UBFeaturesActionBar.cpp:272: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
gui/UBFloatingPalette.cpp:125, 138: Warnung: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition()
gui/UBFeaturesWidget.cpp:424: Warnung: ‘QPoint QDropEvent::pos() const’ is deprecated: Use position().toPoint()
gui/UBMagnifer.cpp:265, 292: Warnung: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition()
gui/UBMainWindow.cpp:77: Warnung: ‘constexpr QKeyCombination operator+(Qt::Modifier, Qt::Key)’ is deprecated: Use operator| instead
gui/UBMousePressFilter.cpp:66, 80: Warnung: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition()