mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:17:35 +02:00
Fix "duplicate bookmark" dialog
This commit is contained in:
parent
10e4e5e3a7
commit
edc50f102d
2 changed files with 19 additions and 3 deletions
|
@ -84,7 +84,7 @@ ModalWindow {
|
||||||
|
|
||||||
RalewaySemibold {
|
RalewaySemibold {
|
||||||
id: mainTextContainer
|
id: mainTextContainer
|
||||||
onHeightChanged: d.resize(); onWidthChanged: d.resize();
|
onTextChanged: d.resize();
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
size: hifi.fontSizes.menuItem
|
size: hifi.fontSizes.menuItem
|
||||||
color: hifi.colors.baseGrayHighlight
|
color: hifi.colors.baseGrayHighlight
|
||||||
|
@ -100,7 +100,7 @@ ModalWindow {
|
||||||
|
|
||||||
RalewaySemibold {
|
RalewaySemibold {
|
||||||
id: informativeTextContainer
|
id: informativeTextContainer
|
||||||
onHeightChanged: d.resize(); onWidthChanged: d.resize();
|
onTextChanged: d.resize();
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
size: hifi.fontSizes.menuItem
|
size: hifi.fontSizes.menuItem
|
||||||
color: hifi.colors.baseGrayHighlight
|
color: hifi.colors.baseGrayHighlight
|
||||||
|
@ -194,7 +194,10 @@ ModalWindow {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
Component.onCompleted: updateIcon()
|
Component.onCompleted: {
|
||||||
|
updateIcon();
|
||||||
|
d.resize();
|
||||||
|
}
|
||||||
onStateChanged: d.resize()
|
onStateChanged: d.resize()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -161,6 +161,19 @@ ApplicationWindow {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Button {
|
||||||
|
text: "Duplicate Bookmark"
|
||||||
|
onClicked: {
|
||||||
|
desktop.messageBox({
|
||||||
|
title: "Duplicate Bookmark",
|
||||||
|
icon: hifi.icons.warning,
|
||||||
|
text: "The bookmark name you entered alread exists in yoru list.",
|
||||||
|
informativeText: "Would you like to overwrite it?",
|
||||||
|
buttons: OriginalDialogs.StandardButton.Yes + OriginalDialogs.StandardButton.No,
|
||||||
|
defaultButton: OriginalDialogs.StandardButton.Yes
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
// There is no such desktop.queryBox() function; may need to update test to cover QueryDialog.qml?
|
// There is no such desktop.queryBox() function; may need to update test to cover QueryDialog.qml?
|
||||||
Button {
|
Button {
|
||||||
|
|
Loading…
Reference in a new issue