-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add settings entry for the maximum number of events per object
- Loading branch information
1 parent
fd992aa
commit 9b3e2e2
Showing
16 changed files
with
199 additions
and
3 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
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.
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,3 @@ | ||
SPDX-FileCopyrightText: 2023 Google LLC | ||
|
||
SPDX-License-Identifier: Apache-2.0 |
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
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,73 @@ | ||
/** | ||
* SPDX-FileCopyrightText: 2024 basysKom GmbH | ||
* | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
|
||
import QtQuick | ||
import QtQuick.Controls | ||
import QtQuick.Layouts | ||
|
||
import OPC_UA_Browser | ||
|
||
ColumnLayout { | ||
id: layout | ||
|
||
property ThemeSpinBox theme: Style.spinBox | ||
property alias captionText: caption.text | ||
property alias from: spinBox.from | ||
property alias to: spinBox.to | ||
property alias value: spinBox.value | ||
|
||
Text { | ||
id: caption | ||
|
||
verticalAlignment: Qt.AlignVCenter | ||
color: layout.theme.textColor | ||
font.bold: true | ||
} | ||
|
||
SpinBox { | ||
id: spinBox | ||
height: 30 | ||
|
||
background: Rectangle { | ||
implicitWidth: 100 | ||
color: "transparent" | ||
border.color: "transparent" | ||
border.width: 0 | ||
} | ||
|
||
contentItem: TextInput { | ||
z: 2 | ||
text: spinBox.textFromValue(spinBox.value, spinBox.locale) | ||
|
||
font: spinBox.font | ||
color: theme.textColor | ||
selectionColor: theme.textBackgroundSelected | ||
selectedTextColor: theme.textColor | ||
horizontalAlignment: Qt.AlignHCenter | ||
verticalAlignment: Qt.AlignVCenter | ||
|
||
readOnly: !spinBox.editable | ||
validator: spinBox.validator | ||
inputMethodHints: Qt.ImhFormattedNumbersOnly | ||
} | ||
|
||
up.indicator: IconImage { | ||
x: spinBox.mirrored ? 0 : parent.width - width | ||
sourceSize.width: 30 | ||
sourceSize.height: 30 | ||
source: "qrc:/icons/plus.svg" | ||
color: spinBox.up.pressed || spinBox.to == value ? theme.buttonBackgroundSelected : theme.textColor | ||
} | ||
|
||
down.indicator: IconImage { | ||
x: spinBox.mirrored ? parent.width - width : 0 | ||
sourceSize.width: 30 | ||
sourceSize.height: 30 | ||
source: "qrc:/icons/minus.svg" | ||
color: spinBox.down.pressed || spinBox.from == value ? theme.buttonBackgroundSelected : theme.textColor | ||
} | ||
} | ||
} |
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
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,17 @@ | ||
/** | ||
* SPDX-FileCopyrightText: 2024 basysKom GmbH | ||
* | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
|
||
import QtQuick | ||
|
||
StyleDefinitions { | ||
property color textColor: foreground | ||
|
||
property color buttonBackground: dark | ||
property color buttonBackgroundSelected: mediumDark | ||
|
||
property color textBackground: dark | ||
property color textBackgroundSelected: mediumDark | ||
} |