-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): add customizable graph sizes
fix #4
- Loading branch information
Showing
4 changed files
with
85 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import QtQuick 2.2 | ||
import QtQuick.Controls 2.15 | ||
import QtQuick.Layouts 1.1 | ||
import QtQuick.Dialogs 1.0 | ||
|
||
import "./" | ||
|
||
RowLayout { | ||
id: customizableSize | ||
|
||
// Aliases | ||
property alias value: spinBox.value | ||
property alias checked: customized.checked | ||
|
||
property alias from: spinBox.from | ||
property alias to: spinBox.to | ||
property alias stepSize: spinBox.stepSize | ||
|
||
// Properties | ||
property string label | ||
property string dialogTitle | ||
|
||
// Components | ||
CheckBox { | ||
id: customized | ||
|
||
Accessible.name: ToolTip.text | ||
ToolTip { | ||
text: i18n("Check for use customized graph width") | ||
} | ||
} | ||
SpinBox { | ||
id: spinBox | ||
|
||
enabled: customized.checked | ||
suffix: i18nc('Pixels', 'px') | ||
Layout.fillWidth: true | ||
} | ||
} |
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