mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 11:59:54 +02:00
Implemented as a new simple InformationDialog so that can try it out without reworking MessageDialog immediately for all QML UI.
38 lines
755 B
C++
38 lines
755 B
C++
//
|
|
// ErrorDialog.cpp
|
|
//
|
|
// 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
|
|
//
|
|
|
|
#include "ErrorDialog.h"
|
|
|
|
HIFI_QML_DEF(ErrorDialog)
|
|
|
|
ErrorDialog::ErrorDialog(QQuickItem* parent) : OffscreenQmlDialog(parent) {
|
|
}
|
|
|
|
ErrorDialog::~ErrorDialog() {
|
|
}
|
|
|
|
QString ErrorDialog::text() const {
|
|
return _text;
|
|
}
|
|
|
|
void ErrorDialog::setVisible(bool v) {
|
|
OffscreenQmlDialog::setVisible(v);
|
|
}
|
|
|
|
void ErrorDialog::setText(const QString& arg) {
|
|
if (arg != _text) {
|
|
_text = arg;
|
|
emit textChanged();
|
|
}
|
|
}
|
|
|
|
void ErrorDialog::accept() {
|
|
OffscreenQmlDialog::accept();
|
|
}
|