History

Add title to WebWindowClass

Ryan Huffman committed 12 years ago

Commit 55612cc1 parent 49563db5 files · +10 −8Browse files

Showing the changes to interface/src/scripting/WebWindowClass.cpp (1 of 5 files). Show all

Unified · Split

interface/src/scripting/WebWindowClass.cpp+5−3
@@ -28,7 +28,8 @@ void ScriptEventBridge::emitScriptEvent(const QString& data) { · 27 unmodified lines
2828 emit scriptEventReceived(data);
2929 }
3030
31−WebWindowClass::WebWindowClass(const QString& url, int width, int height)
31+
32+WebWindowClass::WebWindowClass(const QString& title, const QString& url, int width, int height)
3233 : QObject(NULL),
3334 _window(new QWidget(NULL, Qt::Tool)),
3435 _eventBridge(new ScriptEventBridge(this)) {
@@ -59,8 +60,9 @@ QScriptValue WebWindowClass::constructor(QScriptContext* context, QScriptEngine* · 24 unmodified lines
5960 QMetaObject::invokeMethod(WindowScriptingInterface::getInstance(), "doCreateWebWindow", Qt::BlockingQueuedConnection,
6061 Q_RETURN_ARG(WebWindowClass*, retVal),
6162 Q_ARG(const QString&, file),
62− Q_ARG(int, context->argument(1).toInteger()),
63− Q_ARG(int, context->argument(2).toInteger()));
63+ Q_ARG(QString, context->argument(1).toString()),
64+ Q_ARG(int, context->argument(2).toInteger()),
65+ Q_ARG(int, context->argument(3).toInteger()));
6466
6567 connect(engine, &QScriptEngine::destroyed, retVal, &WebWindowClass::deleteLater);
6668

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t