mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
address bar commit
This commit is contained in:
parent
894a245318
commit
afc2db6c6a
3 changed files with 6 additions and 2 deletions
|
@ -37,6 +37,10 @@ DialogContainer {
|
|||
implicitWidth: backgroundImage.width
|
||||
implicitHeight: backgroundImage.height
|
||||
|
||||
onParentChanged: {
|
||||
console.log("Test: " + addressBarDialog.backEnabled + " " + addressBarDialog.forwardEnabled+ " " + addressBarDialog)
|
||||
}
|
||||
|
||||
Image {
|
||||
id: backgroundImage
|
||||
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
#include "AddressManager.h"
|
||||
|
||||
HIFI_QML_DEF(AddressBarDialog)
|
||||
Q_PROPERTY(bool backEnabled READ backEnabled CHANGED backEnabledChanged)
|
||||
Q_PROPERTY(bool forwardEnabled READ forwardEnabled CHANGED forwardEnabledChanged)
|
||||
|
||||
AddressBarDialog::AddressBarDialog(QQuickItem* parent) : OffscreenQmlDialog(parent) {
|
||||
auto addressManager = DependencyManager::get<AddressManager>();
|
||||
|
|
|
@ -18,6 +18,8 @@ class AddressBarDialog : public OffscreenQmlDialog
|
|||
{
|
||||
Q_OBJECT
|
||||
HIFI_QML_DECL
|
||||
Q_PROPERTY(bool backEnabled READ backEnabled CHANGED backEnabledChanged)
|
||||
Q_PROPERTY(bool forwardEnabled READ forwardEnabled CHANGED forwardEnabledChanged)
|
||||
|
||||
public:
|
||||
AddressBarDialog(QQuickItem* parent = nullptr);
|
||||
|
|
Loading…
Reference in a new issue