mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Added setWindowSize
- FOR TESTING ON MAC
This commit is contained in:
parent
58bac436ba
commit
c7353e6c59
2 changed files with 11 additions and 0 deletions
|
@ -209,3 +209,7 @@ QString TestScriptingInterface::getOperatingSystemType() {
|
|||
return "UNKNOWN";
|
||||
#endif
|
||||
}
|
||||
|
||||
void TestScriptingInterface::setWindowSize(int width, int height) {
|
||||
qApp->getWindow()->resize(width, height);
|
||||
}
|
|
@ -166,9 +166,16 @@ public slots:
|
|||
/**jsdoc
|
||||
* Returns the Operating Sytem type
|
||||
* @function Test.getOperatingSystemType
|
||||
* @returns {string} "WINDOWS", "MACOS" or "UNKNOWN"
|
||||
*/
|
||||
QString getOperatingSystemType();
|
||||
|
||||
/**jsdoc
|
||||
* Sets the size of the Window on desktop
|
||||
* @function Test.getOperatingSystemType
|
||||
*/
|
||||
void setWindowSize(int width, int height);
|
||||
|
||||
private:
|
||||
bool waitForCondition(qint64 maxWaitMs, std::function<bool()> condition);
|
||||
QString _testResultsLocation;
|
||||
|
|
Loading…
Reference in a new issue