Commit 2665eced authored by Christian Stenger's avatar Christian Stenger
Browse files

Squish: Move common function to shared script



Change-Id: I59d341f9f7a5c86bc3b723dbdc1e1596d464c92c
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent cdf8407d
...@@ -584,3 +584,13 @@ def addCPlusPlusFileToCurrentProject(name, template, forceOverwrite=False): ...@@ -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(): ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment