Skip to content

Commit 132d2e4

Browse files
author
hekra01
authored
Update main.cc
1 parent 145a9d3 commit 132d2e4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Test/main.cc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ int wd_setup(int argc, char *argv[])
156156
/*
157157
Register view classes (here some test classes) that can be created by WebDriver.
158158
Creation can be triggered by client side request like wd.get("qtwidget://WindowTestWidget");
159+
See https://github.com/cisco-open-source/qtwebdriver/wiki/Hybridity-And-View-Management
159160
*/
160161
widgetCreator->RegisterViewClass<QWidget>("QWidget");
161162

@@ -213,6 +214,7 @@ int wd_setup(int argc, char *argv[])
213214
#endif
214215

215216
#ifndef QT_NO_SAMPLES
217+
/* optional samples setup */
216218
wd_samples_setup(widgetCreator, webCreator, qmlCreator, cmd_line);
217219
#endif // QT_NO_SAMPLES
218220

@@ -286,6 +288,13 @@ int wd_setup(int argc, char *argv[])
286288
}
287289

288290
#ifndef QT_NO_SAMPLES
291+
292+
/*
293+
This step is optional.
294+
This method registers some native apps to Webdriver.
295+
This wil enable WD to create these apps when queried with qtwidget://<widgetclass>
296+
See: https://github.com/cisco-open-source/qtwebdriver/wiki/Hybridity-And-View-Management
297+
*/
289298
int wd_samples_setup(webdriver::ViewCreator* widgetCreator,
290299
webdriver::ViewCreator* webCreator,
291300
webdriver::ViewCreator* qmlCreator,
@@ -343,4 +352,4 @@ int wd_samples_setup(webdriver::ViewCreator* widgetCreator,
343352
#endif // WD_ENABLE_PLAYER
344353
return 0;
345354
}
346-
#endif // QT_NO_SAMPLES
355+
#endif // QT_NO_SAMPLES

0 commit comments

Comments
 (0)