Skip to content

Commit

Permalink
Set the size of the splash dialog from the implicit size
Browse files Browse the repository at this point in the history
Ensure the size is always an even number, to avoid subpixel alignment
  • Loading branch information
stdevCrow committed Mar 10, 2020
1 parent f65fded commit 05be2b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ui/splash.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ Window {
onRejected: Qt.exit(-1)
onClosed: windowSplash.visible = false

width: 300
height: 300
// The width/height must be always greater than its implicit version:
// onAboutToShow: console.log("Size:", width + 'x' + height, "Implicit size:", implicitWidth + 'x' + implicitHeight)
width: implicitWidth + (implicitWidth % 2)
height: implicitHeight + (implicitHeight % 2)

ColumnLayout {
Image {
Expand Down

0 comments on commit 05be2b5

Please sign in to comment.