[-]
[+]
|
Changed |
_service:tar_git:harbour-sailimgur-0.11.1.tar.bz2/main.cpp
^
|
@@ -45,6 +45,8 @@
SimpleCrypt *crypto = new SimpleCrypt();
crypto->setKey(0xd2fa13b37d936b07);
+ //QString secret = crypto->encryptToString(QString(""));
+ //qDebug() << "secret:" << secret;
QString client_secret = crypto->decryptToString(QString(CLIENT_SECRET));
QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv));
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-sailimgur-0.11.1.tar.bz2/qml/pages/ImageComponent.qml
^
|
@@ -12,9 +12,6 @@
height: Math.max(image.height, 3 * loadingImageIndicator.height);
width: Screen.width;
- property int start_x;
- property int start_y;
-
AnimatedImage {
id: image;
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-sailimgur-0.11.1.tar.bz2/qml/pages/VideoComponent.qml
^
|
@@ -81,37 +81,35 @@
internal.clickPlay();
}
- MouseArea {
- property int start_x;
- property int start_y;
-
- anchors.fill: parent;
-
- onPressAndHold: {
- video.height = (video.height < drawerContextMenu.height) ? drawerContextMenu.height : video.height;
- drawer.open = true;
- }
-
- onPressed: {
- start_x = mouseX;
- start_y = mouseY;
- }
-
- onPositionChanged: {
- var x_diff = mouseX - start_x;
- var y_diff = mouseY - start_y;
-
- var abs_x_diff = Math.abs(x_diff);
- var abs_y_diff = Math.abs(y_diff);
-
- if (abs_x_diff != abs_y_diff) {
- if (abs_x_diff > abs_y_diff) {
- if (abs_x_diff > 50) {
- if (x_diff > 0) {
- if (prevEnabled) { galleryNavigation.previous(); }
- } else if (x_diff < 0) {
- galleryNavigation.next();
- }
+ property int start_x;
+ property int start_y;
+
+ anchors.fill: parent;
+
+ onPressAndHold: {
+ video.height = (video.height < drawerContextMenu.height) ? drawerContextMenu.height : video.height;
+ drawer.open = true;
+ }
+
+ onPressed: {
+ start_x = mouseX;
+ start_y = mouseY;
+ }
+
+ onPositionChanged: {
+ var x_diff = mouseX - start_x;
+ var y_diff = mouseY - start_y;
+
+ var abs_x_diff = Math.abs(x_diff);
+ var abs_y_diff = Math.abs(y_diff);
+
+ if (abs_x_diff != abs_y_diff) {
+ if (abs_x_diff > abs_y_diff) {
+ if (abs_x_diff > 50) {
+ if (x_diff > 0) {
+ if (prevEnabled) { galleryNavigation.previous(); }
+ } else if (x_diff < 0) {
+ galleryNavigation.next();
}
}
}
|