mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:48:38 +02:00
Fixing always-on link cursor
This commit is contained in:
parent
84505c49c4
commit
3b987c1e73
1 changed files with 9 additions and 10 deletions
|
@ -132,19 +132,18 @@ ApplicationCompositor::ApplicationCompositor() {
|
||||||
|
|
||||||
// check the format of this href string before we parse it
|
// check the format of this href string before we parse it
|
||||||
QString hrefString = properties.getHref();
|
QString hrefString = properties.getHref();
|
||||||
if (!hrefString.startsWith("hifi:")) {
|
|
||||||
hrefString.prepend("hifi://");
|
|
||||||
}
|
|
||||||
|
|
||||||
// parse out a QUrl from the hrefString
|
|
||||||
QUrl href = QUrl(hrefString);
|
|
||||||
|
|
||||||
_hoverItemTitle = href.host();
|
|
||||||
_hoverItemDescription = properties.getDescription();
|
|
||||||
|
|
||||||
auto cursor = Cursor::Manager::instance().getCursor();
|
auto cursor = Cursor::Manager::instance().getCursor();
|
||||||
|
if (!hrefString.isEmpty()) {
|
||||||
|
if (!hrefString.startsWith("hifi:")) {
|
||||||
|
hrefString.prepend("hifi://");
|
||||||
|
}
|
||||||
|
|
||||||
if (!href.isEmpty()) {
|
// parse out a QUrl from the hrefString
|
||||||
|
QUrl href = QUrl(hrefString);
|
||||||
|
|
||||||
|
_hoverItemTitle = href.host();
|
||||||
|
_hoverItemDescription = properties.getDescription();
|
||||||
cursor->setIcon(Cursor::Icon::LINK);
|
cursor->setIcon(Cursor::Icon::LINK);
|
||||||
} else {
|
} else {
|
||||||
cursor->setIcon(Cursor::Icon::DEFAULT);
|
cursor->setIcon(Cursor::Icon::DEFAULT);
|
||||||
|
|
Loading…
Reference in a new issue