Skip to content

Commit

Permalink
#34 image location changed to /home/nemo/Pictures
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-foerster committed Oct 22, 2017
1 parent 26e5317 commit d4817d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/scanner/AutoBarcodeScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <screenshot>: " << reply;

QImage screenshot(m_decoder->getCaptureLocation());

Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/scanner/BarcodeDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion translations/harbour-barcode-hu.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="hu_HU">
<TS version="2.1" language="hu_HU">
<context>
<name>AboutPage</name>
<message>
Expand Down

0 comments on commit d4817d1

Please sign in to comment.