mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +02: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";
|
return "UNKNOWN";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TestScriptingInterface::setWindowSize(int width, int height) {
|
||||||
|
qApp->getWindow()->resize(width, height);
|
||||||
|
}
|
|
@ -166,9 +166,16 @@ public slots:
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* Returns the Operating Sytem type
|
* Returns the Operating Sytem type
|
||||||
* @function Test.getOperatingSystemType
|
* @function Test.getOperatingSystemType
|
||||||
|
* @returns {string} "WINDOWS", "MACOS" or "UNKNOWN"
|
||||||
*/
|
*/
|
||||||
QString getOperatingSystemType();
|
QString getOperatingSystemType();
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* Sets the size of the Window on desktop
|
||||||
|
* @function Test.getOperatingSystemType
|
||||||
|
*/
|
||||||
|
void setWindowSize(int width, int height);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool waitForCondition(qint64 maxWaitMs, std::function<bool()> condition);
|
bool waitForCondition(qint64 maxWaitMs, std::function<bool()> condition);
|
||||||
QString _testResultsLocation;
|
QString _testResultsLocation;
|
||||||
|
|
Loading…
Reference in a new issue