-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use icon buttons for file selection and creation
Those are smaller and thus fit better on screen size constrained mobile platforms and work fine on desktop as well. Also allows to create snapshot files that way. TODO: - Document and test createDialogLoader logic - Rename saveDialogSupported to saveDialogCanOverwrite?
- Loading branch information
1 parent
a1b13c4
commit cc9f081
Showing
7 changed files
with
75 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import QtQuick 2.0 | ||
import QtQuick.Controls 1.0 | ||
|
||
/* A push button with a symbol instead of text. | ||
* ToolButton and <img/> in Label don't size correctly, | ||
* so do it manually. | ||
* With QQC2, button icons have a better default size | ||
* and it can also be specified explicitly. */ | ||
|
||
Button { | ||
property alias icon: image.source | ||
|
||
implicitHeight: TextMetrics.normalSize * 2.5 | ||
implicitWidth: implicitHeight | ||
|
||
Image { | ||
id: image | ||
height: parent.height * 0.6 | ||
anchors.centerIn: parent | ||
|
||
fillMode: Image.PreserveAspectFit | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.