Fix "duplicate bookmark" dialog

This commit is contained in:
David Rowe 2016-03-09 11:55:09 +13:00
parent 10e4e5e3a7
commit edc50f102d
2 changed files with 19 additions and 3 deletions

View file

@ -84,7 +84,7 @@ ModalWindow {
RalewaySemibold {
id: mainTextContainer
onHeightChanged: d.resize(); onWidthChanged: d.resize();
onTextChanged: d.resize();
wrapMode: Text.WordWrap
size: hifi.fontSizes.menuItem
color: hifi.colors.baseGrayHighlight
@ -100,7 +100,7 @@ ModalWindow {
RalewaySemibold {
id: informativeTextContainer
onHeightChanged: d.resize(); onWidthChanged: d.resize();
onTextChanged: d.resize();
wrapMode: Text.WordWrap
size: hifi.fontSizes.menuItem
color: hifi.colors.baseGrayHighlight
@ -194,7 +194,10 @@ ModalWindow {
}
]
Component.onCompleted: updateIcon()
Component.onCompleted: {
updateIcon();
d.resize();
}
onStateChanged: d.resize()
}

View file

@ -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?
Button {