forked from qt-creator/qt-creator
Squish: Move common function to shared script
Change-Id: I59d341f9f7a5c86bc3b723dbdc1e1596d464c92c Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -584,3 +584,13 @@ def addCPlusPlusFileToCurrentProject(name, template, forceOverwrite=False):
|
|||||||
buttonToClick = 'Cancel'
|
buttonToClick = 'Cancel'
|
||||||
clickButton("{text='%s' type='QPushButton' unnamed='1' visible='1' window=%s}"
|
clickButton("{text='%s' type='QPushButton' unnamed='1' visible='1' window=%s}"
|
||||||
% (buttonToClick, overwriteDialog))
|
% (buttonToClick, overwriteDialog))
|
||||||
|
|
||||||
|
def qt5SDKPath():
|
||||||
|
if platform.system() in ('Microsoft', 'Windows'):
|
||||||
|
return os.path.abspath("C:/Qt/Qt5.0.1/5.0.1/msvc2010")
|
||||||
|
elif platform.system() == 'Linux':
|
||||||
|
if __is64BitOS__():
|
||||||
|
return os.path.expanduser("~/Qt5.0.1/5.0.1/gcc_64")
|
||||||
|
return os.path.expanduser("~/Qt5.0.1/5.0.1/gcc")
|
||||||
|
else:
|
||||||
|
return os.path.expanduser("~/Qt5.0.1/5.0.1/clang_64")
|
||||||
|
@@ -59,16 +59,6 @@ def handlePackagingMessageBoxes():
|
|||||||
except:
|
except:
|
||||||
break
|
break
|
||||||
|
|
||||||
def qt5SDKPath():
|
|
||||||
if platform.system() in ('Microsoft', 'Windows'):
|
|
||||||
return os.path.abspath("C:/Qt/Qt5.0.1/5.0.1/msvc2010")
|
|
||||||
elif platform.system() == 'Linux':
|
|
||||||
if __is64BitOS__():
|
|
||||||
return os.path.expanduser("~/Qt5.0.1/5.0.1/gcc_64")
|
|
||||||
return os.path.expanduser("~/Qt5.0.1/5.0.1/gcc")
|
|
||||||
else:
|
|
||||||
return os.path.expanduser("~/Qt5.0.1/5.0.1/clang_64")
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
global sdkPath, webPageContentLoadedValue
|
global sdkPath, webPageContentLoadedValue
|
||||||
# open Qt Creator
|
# open Qt Creator
|
||||||
|
Reference in New Issue
Block a user