Minor formatting changes
This commit is contained in:
		
					parent
					
						
							
								2a7f9a79d7
							
						
					
				
			
			
				commit
				
					
						18e49e8388
					
				
			
		
					 1 changed files with 3 additions and 19 deletions
				
			
		| 
						 | 
					@ -112,17 +112,12 @@ Rectangle {
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        onDoubleClicked: {
 | 
					                        onDoubleClicked: {
 | 
				
			||||||
                            // TODO: This needs to download the medium-size image (sample_url)
 | 
					 | 
				
			||||||
                            imageOverlay.imageDoubleClicked(sampleUrl, tags)
 | 
					                            imageOverlay.imageDoubleClicked(sampleUrl, tags)
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        onEntered: {
 | 
					                        onEntered: {
 | 
				
			||||||
 | 
					 | 
				
			||||||
                            viewButton.opacity = 1
 | 
					                            viewButton.opacity = 1
 | 
				
			||||||
                            downloadButton.opacity = 1
 | 
					                            downloadButton.opacity = 1
 | 
				
			||||||
 | 
					 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        onExited: {
 | 
					                        onExited: {
 | 
				
			||||||
| 
						 | 
					@ -151,7 +146,6 @@ Rectangle {
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                            Behavior on opacity {
 | 
					                            Behavior on opacity {
 | 
				
			||||||
 | 
					 | 
				
			||||||
                                NumberAnimation {
 | 
					                                NumberAnimation {
 | 
				
			||||||
                                    duration: 200
 | 
					                                    duration: 200
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
| 
						 | 
					@ -180,7 +174,6 @@ Rectangle {
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                            Behavior on opacity {
 | 
					                            Behavior on opacity {
 | 
				
			||||||
 | 
					 | 
				
			||||||
                                NumberAnimation {
 | 
					                                NumberAnimation {
 | 
				
			||||||
                                    duration: 200
 | 
					                                    duration: 200
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
| 
						 | 
					@ -259,7 +252,6 @@ Rectangle {
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Behavior on opacity {
 | 
					            Behavior on opacity {
 | 
				
			||||||
 | 
					 | 
				
			||||||
                NumberAnimation {
 | 
					                NumberAnimation {
 | 
				
			||||||
                    duration: 200
 | 
					                    duration: 200
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
| 
						 | 
					@ -268,8 +260,9 @@ Rectangle {
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     Image {
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					     Image {
 | 
				
			||||||
 | 
					        // This handles displaying the medium-resolution image as preview
 | 
				
			||||||
        signal imageDoubleClicked(url url, var tags)
 | 
					        signal imageDoubleClicked(url url, var tags)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        id: imageOverlay
 | 
					        id: imageOverlay
 | 
				
			||||||
| 
						 | 
					@ -282,7 +275,6 @@ Rectangle {
 | 
				
			||||||
        visible: width > 0
 | 
					        visible: width > 0
 | 
				
			||||||
        z: 1
 | 
					        z: 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        Button {
 | 
					        Button {
 | 
				
			||||||
            id: closeButton
 | 
					            id: closeButton
 | 
				
			||||||
            anchors.top: parent.top
 | 
					            anchors.top: parent.top
 | 
				
			||||||
| 
						 | 
					@ -294,6 +286,7 @@ Rectangle {
 | 
				
			||||||
            iconName: "window-close"
 | 
					            iconName: "window-close"
 | 
				
			||||||
            visible: false
 | 
					            visible: false
 | 
				
			||||||
            z: 2
 | 
					            z: 2
 | 
				
			||||||
 | 
					            tooltip: i18n("Click to close image preview")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            onClicked: {
 | 
					            onClicked: {
 | 
				
			||||||
                closeButton.visible = false
 | 
					                closeButton.visible = false
 | 
				
			||||||
| 
						 | 
					@ -326,8 +319,6 @@ Rectangle {
 | 
				
			||||||
                color: "white"
 | 
					                color: "white"
 | 
				
			||||||
                visible: false
 | 
					                visible: false
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Keys.onEscapePressed: {
 | 
					        Keys.onEscapePressed: {
 | 
				
			||||||
| 
						 | 
					@ -345,8 +336,6 @@ Rectangle {
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                overlayText.text = i18n("Tags: %1", tags.slice(0, 10).join(", "))
 | 
					                overlayText.text = i18n("Tags: %1", tags.slice(0, 10).join(", "))
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        onStatusChanged: {
 | 
					        onStatusChanged: {
 | 
				
			||||||
| 
						 | 
					@ -381,8 +370,6 @@ Rectangle {
 | 
				
			||||||
                    } else {
 | 
					                    } else {
 | 
				
			||||||
                        overlayBox.height = imageOverlay.paintedHeight * 0.05
 | 
					                        overlayBox.height = imageOverlay.paintedHeight * 0.05
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -402,9 +389,6 @@ Rectangle {
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue