...
 
Commits (4)
......@@ -29,7 +29,7 @@ kde_enable_exceptions()
################# Find dependencies #################
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui Svg QuickControls2 Multimedia DBus)
find_package(KF5 REQUIRED COMPONENTS Kirigami2 Purpose I18n Contacts CoreAddons)# NetworkManagerQt)
find_package(KF5 REQUIRED COMPONENTS Kirigami2 Purpose I18n Contacts CoreAddons)
find_package(ZXing REQUIRED COMPONENTS Core)
################# Enable C++11 features for clang and gcc #################
......
#ifndef ORCASCANNER_H
#define ORCASCANNER_H
#ifndef QRCA_H
#define QRCA_H
#include <QObject>
#include <QImage>
......@@ -22,4 +22,4 @@ signals:
void passiveNotificationRequested(QString text);
};
#endif // QRSKANNER_H
#endif // QRCA_H
......@@ -20,7 +20,7 @@ Kirigami.ScrollablePage {
icon.name: "document-save"
onTriggered: {
path = "file://" + qrca.save(codeView.source)
showPassiveNotification(i18n("Saved image to " + path), 1000, "Open Externally", function() {Qt.openUrlExternally(path)})
showPassiveNotification(i18n("Saved image to " + path), "long", "Open Externally", function() {Qt.openUrlExternally(path)})
}
},
Kirigami.Action {
......
......@@ -129,7 +129,8 @@ Kirigami.Page {
resultSheet.tag = result
resultSheet.isLink = qrca.isUrl(result)
resultSheet.isVCard = qrca.isVCard(result)
resultSheet.open()
if (!resultSheet.sheetOpen)
resultSheet.open()
}
onUnsupportedFormatReceived: {
passiveNotification(qsTr("The camera format '%1' is not supported.").arg(format))
......