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