mirror of https://github.com/status-im/qzxing.git
support SailfishOS (fixes #200)
This commit is contained in:
parent
ac6919ccfd
commit
b4bdd72fa3
|
@ -430,20 +430,7 @@ qzxing_qml {
|
|||
$$PWD/QZXingImageProvider.cpp
|
||||
}
|
||||
|
||||
symbian {
|
||||
TARGET.UID3 = 0xE618743C
|
||||
TARGET.EPOCALLOWDLLDATA = 1
|
||||
|
||||
#TARGET.CAPABILITY = All -TCB -AllFiles -DRM
|
||||
TARGET.CAPABILITY += NetworkServices \
|
||||
ReadUserData \
|
||||
WriteUserData \
|
||||
LocalServices \
|
||||
UserEnvironment \
|
||||
Location
|
||||
}
|
||||
|
||||
!symbian {
|
||||
unix {
|
||||
isEmpty(PREFIX) {
|
||||
maemo5 {
|
||||
PREFIX = /opt/usr
|
||||
|
@ -454,11 +441,16 @@ symbian {
|
|||
|
||||
DEFINES += NOFMAXL
|
||||
|
||||
contains( CONFIG, sailfishapp) {
|
||||
DEFINES += Q_OS_SAILFISH
|
||||
} else {
|
||||
# Installation
|
||||
headers.files = $$PWD/QZXing.h $$PWD/QZXing_global.h
|
||||
headers.path = $$PREFIX/include
|
||||
target.path = $$PREFIX/lib
|
||||
INSTALLS += headers target
|
||||
}
|
||||
|
||||
|
||||
# pkg-config support
|
||||
CONFIG += create_pc create_prl no_install_prl
|
||||
|
|
|
@ -180,7 +180,7 @@ static QImage* rgbDataToGrayscale(const uchar* data, const CaptureRect& captureR
|
|||
for (int y = 1; y <= captureRect.targetHeight; ++y) {
|
||||
|
||||
//Quick fix for iOS & macOS devices. Will be handled better in the future
|
||||
#if defined(Q_OS_IOS) || defined (Q_OS_MAC)
|
||||
#if defined(Q_OS_IOS) || defined (Q_OS_MAC) || defined(Q_OS_SAILFISH)
|
||||
uchar* pixel = pixelInit + (y - 1) * captureRect.targetWidth;
|
||||
#else
|
||||
uchar* pixel = pixelInit + (captureRect.targetHeight - y) * captureRect.targetWidth;
|
||||
|
|
Loading…
Reference in New Issue