summarylogtreecommitdiffstats
path: root/qml.patch
diff options
context:
space:
mode:
Diffstat (limited to 'qml.patch')
-rw-r--r--qml.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/qml.patch b/qml.patch
new file mode 100644
index 00000000000..ccd0354a6f3
--- /dev/null
+++ b/qml.patch
@@ -0,0 +1,55 @@
+diff --git a/src/about.cpp b/src/about.cpp
+index fd797c3b..f1093e98 100644
+--- a/src/about.cpp
++++ b/src/about.cpp
+@@ -22,7 +22,7 @@
+
+ AboutPage::AboutPage()
+ {
+- version = new QSettings("/usr/share/qml/qtcam/about/release.ini",QSettings::IniFormat);
++ version = new QSettings("/usr/share/qtcam/qml/about/release.ini",QSettings::IniFormat);
+ version->beginGroup("release");
+ appName = version->value("applicationname").toString();
+ appVerNumber = version->value("version").toString();
+@@ -45,7 +45,7 @@ QString AboutPage::getApplicationVersionNumber() {
+ }
+
+ QByteArray AboutPage::getCopyRight() {
+- copyRightFile = new QFile("/usr/share/qml/qtcam/about/copyright.txt");
++ copyRightFile = new QFile("/usr/share/qtcam/qml/about/copyright.txt");
+ if(copyRightFile->open(QIODevice::ReadOnly)){
+ copyRight = copyRightFile->readAll();
+ copyRightFile->close();
+diff --git a/src/logger.cpp b/src/logger.cpp
+index 7b807212..1ffba582 100644
+--- a/src/logger.cpp
++++ b/src/logger.cpp
+@@ -69,7 +69,7 @@ void logger::logFileCreation() {
+ dt += "\n********************************************************************************";
+ ts << dt << "\n" << flush;
+ }
+- QSettings *releaseSettings = new QSettings("/usr/share/qml/qtcam/about/release.ini",QSettings::IniFormat);
++ QSettings *releaseSettings = new QSettings("/usr/share/qtcam/qml/about/release.ini",QSettings::IniFormat);
+ releaseSettings->beginGroup("release");
+ DEBUG = releaseSettings->value("logDebugEnable").toBool();
+ WARNING = releaseSettings->value("logWarningEnable").toBool();
+diff --git a/src/main.cpp b/src/main.cpp
+index 1f4617ea..1fc9d58a 100644
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -92,13 +92,13 @@ int main(int argc, char *argv[])
+ viewer.rootContext()->setContextProperty("SystemPictureFolder",QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).first());
+ viewer.rootContext()->setContextProperty("SystemVideoFolder",QStandardPaths::standardLocations(QStandardPaths::MoviesLocation).first());
+
+- viewer.setMainQmlFile(QStringLiteral("/usr/share/qml/qtcam/videocapturefilter_QML/videocapturefilter_qml.qml"));
++ viewer.setMainQmlFile(QStringLiteral("/usr/share/qtcam/qml/videocapturefilter_QML/videocapturefilter_qml.qml"));
+ QObject *rootObject = dynamic_cast<QObject*>(viewer.rootObject());
+
+ QObject::connect(rootObject,SIGNAL(stopCamPreview()),rootObject,SLOT(triggerModeCapture()));
+
+ //Setting the Window ICON
+- QIcon icon("/usr/share/qml/qtcam/icon/images/icon.jpg");
++ QIcon icon("/usr/share/qtcam/qml/icon/images/icon.jpg");
+ viewer.setIcon(icon);
+ viewer.setTitle("Qtcam");
+ viewer.showMaximized();