forked from qt-creator/qt-creator
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:
@@ -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>'
|
||||
|
||||
Reference in New Issue
Block a user