mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-19 11:09:40 +02:00
Implemented as a new simple InformationDialog so that can try it out without reworking MessageDialog immediately for all QML UI.
46 lines
854 B
C++
46 lines
854 B
C++
//
|
|
// ErrorDialog.h
|
|
//
|
|
// Created by David Rowe on 30 May 2015
|
|
// 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_ErrorDialog_h
|
|
#define hifi_ErrorDialog_h
|
|
|
|
#include "OffscreenQmlDialog.h"
|
|
|
|
class ErrorDialog : public OffscreenQmlDialog
|
|
{
|
|
Q_OBJECT
|
|
HIFI_QML_DECL
|
|
|
|
private:
|
|
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
|
|
|
|
public:
|
|
ErrorDialog(QQuickItem* parent = 0);
|
|
virtual ~ErrorDialog();
|
|
|
|
QString text() const;
|
|
|
|
public slots:
|
|
virtual void setVisible(bool v);
|
|
void setText(const QString& arg);
|
|
|
|
signals:
|
|
void textChanged();
|
|
|
|
protected slots:
|
|
virtual void accept();
|
|
|
|
private:
|
|
QString _text;
|
|
};
|
|
|
|
#endif // hifi_ErrorDialog_h
|