mirror of
https://github.com/overte-org/overte.git
synced 2025-07-14 23:36:37 +02:00
The address bar dialog was being disabled when a lookup request was finished, but was not hidden - this was bug #1. Presumably, though, the intent was to have the window _not_ disappear when going backwards or forwards, but hiding the window when a lookup request finishes would cause the window to be hidden when going backwards or forwards - this was bug #2. I decided to disable the hide-on-request-finished functionality because the window is already manually hidden after entering a new address.
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
//
|
|
// AddressBarDialog.h
|
|
// interface/src/ui
|
|
//
|
|
// Created by Bradley Austin Davis on 2015/04/14
|
|
// Copyright 2015 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#pragma once
|
|
#ifndef hifi_AddressBarDialog_h
|
|
#define hifi_AddressBarDialog_h
|
|
|
|
#include <OffscreenQmlDialog.h>
|
|
|
|
class AddressBarDialog : public OffscreenQmlDialog {
|
|
Q_OBJECT
|
|
HIFI_QML_DECL
|
|
Q_PROPERTY(bool backEnabled READ backEnabled NOTIFY backEnabledChanged)
|
|
Q_PROPERTY(bool forwardEnabled READ forwardEnabled NOTIFY forwardEnabledChanged)
|
|
|
|
public:
|
|
AddressBarDialog(QQuickItem* parent = nullptr);
|
|
bool backEnabled() { return _backEnabled; }
|
|
bool forwardEnabled() { return _forwardEnabled; }
|
|
|
|
signals:
|
|
void backEnabledChanged();
|
|
void forwardEnabledChanged();
|
|
|
|
protected:
|
|
void displayAddressOfflineMessage();
|
|
void displayAddressNotFoundMessage();
|
|
|
|
Q_INVOKABLE void loadAddress(const QString& address);
|
|
Q_INVOKABLE void loadHome();
|
|
Q_INVOKABLE void loadBack();
|
|
Q_INVOKABLE void loadForward();
|
|
|
|
bool _backEnabled;
|
|
bool _forwardEnabled;
|
|
};
|
|
|
|
#endif
|