mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-05 11:40:00 +00:00
Fix small warning with NTextBox
This commit is contained in:
@@ -19,8 +19,7 @@ NLoader {
|
||||
readonly property real scaling: Scaling.scale(screen)
|
||||
// Active tab index unified for sidebar, header, and content stack
|
||||
property int currentTabIndex: 0
|
||||
// Single source of truth for tabs
|
||||
// Each tab points to a QML file path. The content stack simply loads the file via Loader.source.
|
||||
// Single source of truth for tabs (explicit icon/label here)
|
||||
property var tabsModel: [
|
||||
{ icon: "tune", label: "General", source: "Tabs/General.qml" },
|
||||
{ icon: "web_asset", label: "Bar", source: "Tabs/Bar.qml" },
|
||||
|
||||
@@ -5,6 +5,9 @@ import qs.Widgets
|
||||
|
||||
Item {
|
||||
property real scaling: 1
|
||||
readonly property string tabIcon: "info"
|
||||
readonly property string tabLabel: "About"
|
||||
readonly property int tabIndex: 8
|
||||
anchors.fill: parent
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -6,6 +6,10 @@ import qs.Widgets
|
||||
Item {
|
||||
// Optional scaling prop to match other tabs
|
||||
property real scaling: 1
|
||||
// Tab metadata
|
||||
readonly property string tabIcon: "web_asset"
|
||||
readonly property string tabLabel: "Bar"
|
||||
readonly property int tabIndex: 1
|
||||
anchors.fill: parent
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -5,6 +5,9 @@ import qs.Widgets
|
||||
|
||||
Item {
|
||||
property real scaling: 1
|
||||
readonly property string tabIcon: "monitor"
|
||||
readonly property string tabLabel: "Display"
|
||||
readonly property int tabIndex: 5
|
||||
anchors.fill: parent
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -9,6 +9,10 @@ Item {
|
||||
// Public API
|
||||
// Scaling factor provided by the parent settings window
|
||||
property real scaling: 1
|
||||
// Tab metadata
|
||||
readonly property string tabIcon: "tune"
|
||||
readonly property string tabLabel: "General"
|
||||
readonly property int tabIndex: 0
|
||||
|
||||
anchors.fill: parent
|
||||
implicitWidth: parent ? parent.width : 0
|
||||
|
||||
@@ -5,6 +5,9 @@ import qs.Widgets
|
||||
|
||||
Item {
|
||||
property real scaling: 1
|
||||
readonly property string tabIcon: "more_horiz"
|
||||
readonly property string tabLabel: "Misc"
|
||||
readonly property int tabIndex: 7
|
||||
anchors.fill: parent
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -5,6 +5,9 @@ import qs.Widgets
|
||||
|
||||
Item {
|
||||
property real scaling: 1
|
||||
readonly property string tabIcon: "wifi"
|
||||
readonly property string tabLabel: "Network"
|
||||
readonly property int tabIndex: 4
|
||||
anchors.fill: parent
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -5,6 +5,9 @@ import qs.Widgets
|
||||
|
||||
Item {
|
||||
property real scaling: 1
|
||||
readonly property string tabIcon: "videocam"
|
||||
readonly property string tabLabel: "Screen Recorder"
|
||||
readonly property int tabIndex: 3
|
||||
anchors.fill: parent
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -5,6 +5,9 @@ import qs.Widgets
|
||||
|
||||
Item {
|
||||
property real scaling: 1
|
||||
readonly property string tabIcon: "schedule"
|
||||
readonly property string tabLabel: "Time & Weather"
|
||||
readonly property int tabIndex: 2
|
||||
anchors.fill: parent
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -5,6 +5,9 @@ import qs.Widgets
|
||||
|
||||
Item {
|
||||
property real scaling: 1
|
||||
readonly property string tabIcon: "image"
|
||||
readonly property string tabLabel: "Wallpaper"
|
||||
readonly property int tabIndex: 6
|
||||
anchors.fill: parent
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -14,7 +14,6 @@ Item {
|
||||
property bool readOnly: false
|
||||
property bool enabled: true
|
||||
property var onEditingFinished: function () {}
|
||||
property var onTextChanged: function (value) {}
|
||||
|
||||
// Sizing
|
||||
implicitHeight: Style.baseWidgetSize * 1.25 * scaling
|
||||
@@ -58,7 +57,8 @@ Item {
|
||||
background: null
|
||||
font.pointSize: Colors.fontSizeSmall * scaling
|
||||
onEditingFinished: root.onEditingFinished()
|
||||
onTextChanged: root.onTextChanged(text)
|
||||
// Text changes are observable via the aliased 'text' property (root.text) and its 'textChanged' signal.
|
||||
// No additional callback is invoked here to avoid conflicts with QML's onTextChanged handler semantics.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user