2011-08-25 10:05:28 +02:00
|
|
|
|
|
|
|
|
def invokeMenuItem(menu, item):
|
|
|
|
|
menuObject = waitForObjectItem("{type='QMenuBar' visible='true'}", menu)
|
|
|
|
|
activateItem(menuObject)
|
|
|
|
|
activateItem(waitForObjectItem(menuObject, item))
|
|
|
|
|
|
2011-08-31 13:51:32 +02:00
|
|
|
def openQmakeProject(projectPath):
|
2011-08-25 10:05:28 +02:00
|
|
|
invokeMenuItem("File", "Open File or Project...")
|
|
|
|
|
waitForObject("{name='QFileDialog' type='QFileDialog' visible='1' windowTitle='Open File'}")
|
|
|
|
|
type(findObject("{name='fileNameEdit' type='QLineEdit'}"), projectPath)
|
|
|
|
|
clickButton(findObject("{text='Open' type='QPushButton'}"))
|
|
|
|
|
waitForObject("{type='Qt4ProjectManager::Internal::ProjectLoadWizard' visible='1' windowTitle='Project Setup'}")
|
2011-08-31 13:51:32 +02:00
|
|
|
selectFromCombo(":scrollArea.Create Build Configurations:_QComboBox", "per Qt Version a Debug and Release")
|
2011-08-25 10:05:28 +02:00
|
|
|
clickButton(findObject("{text='Finish' type='QPushButton'}"))
|
2011-08-31 13:51:32 +02:00
|
|
|
|
|
|
|
|
def openCmakeProject(projectPath):
|
|
|
|
|
invokeMenuItem("File", "Open File or Project...")
|
|
|
|
|
waitForObject("{name='QFileDialog' type='QFileDialog' visible='1' windowTitle='Open File'}")
|
|
|
|
|
type(findObject("{name='fileNameEdit' type='QLineEdit'}"), projectPath)
|
|
|
|
|
clickButton(findObject("{text='Open' type='QPushButton'}"))
|
|
|
|
|
clickButton(waitForObject(":CMake Wizard.Next_QPushButton", 20000))
|
|
|
|
|
clickButton(waitForObject(":CMake Wizard.Run CMake_QPushButton", 20000))
|
|
|
|
|
clickButton(waitForObject(":CMake Wizard.Finish_QPushButton", 60000))
|