Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wolfi323:branches:graphics
kphotoalbum
0001-Fix-build-with-Qt-5.7-and-lower.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-build-with-Qt-5.7-and-lower.patch of Package kphotoalbum
From b3d5dc2295dbbefceccf32ccb99cc219912ab2ea Mon Sep 17 00:00:00 2001 From: Wolfgang Bauer <wbauer@tmo.at> Date: Sun, 14 Oct 2018 10:25:39 +0200 Subject: [PATCH] Fix build with Qt 5.7 and lower QRegion::cbegin() has been introduced in Qt 5.8. So use it only when building with 5.8.0 or higher. --- ThumbnailView/ThumbnailDND.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ThumbnailView/ThumbnailDND.cpp b/ThumbnailView/ThumbnailDND.cpp index bda9eac1..5bd8787d 100644 --- a/ThumbnailView/ThumbnailDND.cpp +++ b/ThumbnailView/ThumbnailDND.cpp @@ -55,7 +55,11 @@ void ThumbnailView::ThumbnailDND::contentsDragMoveEvent( QDragMoveEvent* event ) if ( ( event->pos().y() < 10 ) ) widget()->scrollTo( widget()->indexUnderCursor(), QAbstractItemView::PositionAtCenter ); +#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0) if ( ( event->pos().y() > widget()->viewport()->visibleRegion().cbegin()->height() - 10 ) ) +#else + if ( ( event->pos().y() > widget()->viewport()->visibleRegion().rects().first().height() - 10 ) ) +#endif widget()->scrollTo( widget()->indexUnderCursor(), QAbstractItemView::PositionAtCenter ); bool left = ( event->pos().x() - rect.x() < rect.width()/2 ); if ( left ) { -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor