Overte C++ Documentation
ErrorDialog.h
1 //
2 // ErrorDialog.h
3 //
4 // Created by David Rowe on 30 May 2015
5 // Copyright 2015 High Fidelity, Inc.
6 //
7 // Distributed under the Apache License, Version 2.0.
8 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
9 //
10 
11 #pragma once
12 
13 #ifndef hifi_ErrorDialog_h
14 #define hifi_ErrorDialog_h
15 
16 #include "OffscreenQmlDialog.h"
17 
18 class ErrorDialog : public OffscreenQmlDialog
19 {
20  Q_OBJECT
21  HIFI_QML_DECL
22 
23 private:
24  Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
25 
26 public:
27  ErrorDialog(QQuickItem* parent = 0);
28  virtual ~ErrorDialog();
29 
30  QString text() const;
31 
32 public slots:
33  void setText(const QString& arg);
34 
35 signals:
36  void textChanged();
37 
38 protected slots:
39  virtual void accept() override;
40 
41 private:
42  QString _text;
43 };
44 
45 #endif // hifi_ErrorDialog_h