Squish: Remove Qt4 compatibility code

Thank you Qt4 for all the good times we had together.
Farewell.

Change-Id: If0e81b71a97524bb0c84ea5bbcba4c29244a0a5e
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Robert Loehning
2014-10-30 15:57:44 +01:00
parent 2978f08bfa
commit 07a52d1ae6
14 changed files with 16 additions and 43 deletions
+2 -7
View File
@@ -30,8 +30,6 @@
import operator
isQt4Build = False
# for easier re-usage (because Python hasn't an enum type)
class Targets:
DESKTOP_474_GCC = 1
@@ -107,10 +105,7 @@ class ProjectSettings:
# this class defines some constants for the views of the creator's MainWindow
class ViewConstants:
if isQt4Build:
EDIT, DESIGN, DEBUG, PROJECTS, ANALYZE, HELP = range(6)
else:
WELCOME, EDIT, DESIGN, DEBUG, PROJECTS, ANALYZE, HELP = range(7)
WELCOME, EDIT, DESIGN, DEBUG, PROJECTS, ANALYZE, HELP = range(7)
FIRST_AVAILABLE = 0
# always adjust the following to the highest value of the available ViewConstants when adding new
LAST_AVAILABLE = HELP
@@ -120,7 +115,7 @@ class ViewConstants:
# if the provided argument does not match any of the ViewConstants it returns None
@staticmethod
def getToolTipForViewTab(viewTab):
if not isQt4Build and viewTab == ViewConstants.WELCOME:
if viewTab == ViewConstants.WELCOME:
toolTip = ur'Switch to <b>Welcome</b> mode <span style="color: gray; font-size: small">(Ctrl\+|\u2303)%d</span>'
elif viewTab == ViewConstants.EDIT:
toolTip = ur'Switch to <b>Edit</b> mode <span style="color: gray; font-size: small">(Ctrl\+|\u2303)%d</span>'