mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Add default values for alert, confirm, and prompt
This commit is contained in:
parent
8e63352d54
commit
a7dd19183e
1 changed files with 4 additions and 5 deletions
|
@ -12,9 +12,8 @@
|
|||
#ifndef hifi_WindowScriptingInterface_h
|
||||
#define hifi_WindowScriptingInterface_h
|
||||
|
||||
#include <QDebug>
|
||||
#include <QMutex>
|
||||
#include <QObject>
|
||||
#include <QScriptValue>
|
||||
#include <QString>
|
||||
|
||||
class WindowScriptingInterface : public QObject {
|
||||
|
@ -28,9 +27,9 @@ public:
|
|||
int getInnerHeight();
|
||||
|
||||
public slots:
|
||||
QScriptValue alert(const QString& message);
|
||||
QScriptValue confirm(const QString& message);
|
||||
QScriptValue prompt(const QString& message, const QString& defaultText="");
|
||||
QScriptValue alert(const QString& message = "");
|
||||
QScriptValue confirm(const QString& message = "");
|
||||
QScriptValue prompt(const QString& message = "", const QString& defaultText = "");
|
||||
|
||||
private slots:
|
||||
QScriptValue showAlert(const QString& message);
|
||||
|
|
Loading…
Reference in a new issue