From d4817d1bb10c31d40575075e50ddfdc2df4c3d2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Fo=CC=88rster?= Date: Sun, 22 Oct 2017 21:27:11 +0200 Subject: [PATCH] #34 image location changed to /home/nemo/Pictures --- src/scanner/AutoBarcodeScanner.cpp | 5 +++-- src/scanner/BarcodeDecoder.cpp | 2 +- translations/harbour-barcode-hu.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/scanner/AutoBarcodeScanner.cpp b/src/scanner/AutoBarcodeScanner.cpp index 67fecb2..9d20886 100644 --- a/src/scanner/AutoBarcodeScanner.cpp +++ b/src/scanner/AutoBarcodeScanner.cpp @@ -233,7 +233,8 @@ void AutoBarcodeScanner::processDecode() { if (scanActive) { QDBusMessage m = QDBusMessage::createMethodCall("org.nemomobile.lipstick", "/org/nemomobile/lipstick/screenshot", "org.nemomobile.lipstick", "saveScreenshot"); m << m_decoder->getCaptureLocation(); - QDBusConnection::sessionBus().call(m); + QDBusMessage reply = QDBusConnection::sessionBus().call(m); + qDebug() << "reply of method call : " << reply; QImage screenshot(m_decoder->getCaptureLocation()); @@ -245,7 +246,7 @@ void AutoBarcodeScanner::processDecode() { code = result["content"].toString(); if (code.isEmpty()) { - // try for 1D bar code the other orientation + // try the other orientation for 1D bar code QTransform transform; transform.rotate(90); copy = copy.transformed(transform); diff --git a/src/scanner/BarcodeDecoder.cpp b/src/scanner/BarcodeDecoder.cpp index 254f5ea..833d427 100644 --- a/src/scanner/BarcodeDecoder.cpp +++ b/src/scanner/BarcodeDecoder.cpp @@ -35,7 +35,7 @@ BarcodeDecoder::BarcodeDecoder(QObject *parent) , decoder(new QZXing()) { // prepare cache directory - QString cacheFolderLocation = QStandardPaths::writableLocation(QStandardPaths::CacheLocation); + QString cacheFolderLocation = QStandardPaths::writableLocation(QStandardPaths::PicturesLocation); cacheCaptureLocation = cacheFolderLocation + "/capture_code.jpg"; QDir cacheDir(cacheFolderLocation); diff --git a/translations/harbour-barcode-hu.ts b/translations/harbour-barcode-hu.ts index 1583338..a0d0c3e 100644 --- a/translations/harbour-barcode-hu.ts +++ b/translations/harbour-barcode-hu.ts @@ -1,6 +1,6 @@ - + AboutPage