Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
045c7fd5
Commit
045c7fd5
authored
14 years ago
by
Rhys Weatherley
Browse files
Options
Downloads
Patches
Plain Diff
Fix vec and mat type names in tooltips
parent
814c9cc6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libs/glsl/glsltypes.cpp
+12
-12
12 additions, 12 deletions
src/libs/glsl/glsltypes.cpp
with
12 additions
and
12 deletions
src/libs/glsl/glsltypes.cpp
+
12
−
12
View file @
045c7fd5
...
@@ -141,16 +141,16 @@ bool DoubleType::isLessThan(const Type *other) const
...
@@ -141,16 +141,16 @@ bool DoubleType::isLessThan(const Type *other) const
QString
VectorType
::
toString
()
const
QString
VectorType
::
toString
()
const
{
{
QC
har
prefix
;
const
c
har
*
prefix
=
""
;
if
(
elementType
()
->
asBoolType
()
!=
0
)
if
(
elementType
()
->
asBoolType
()
!=
0
)
prefix
=
QLatin1Char
(
'b'
)
;
prefix
=
"b"
;
else
if
(
elementType
()
->
asIntType
()
!=
0
)
else
if
(
elementType
()
->
asIntType
()
!=
0
)
prefix
=
QLatin1Char
(
'
i'
)
;
prefix
=
"
i'
"
;
else
if
(
elementType
()
->
asUIntType
()
!=
0
)
else
if
(
elementType
()
->
asUIntType
()
!=
0
)
prefix
=
QLatin1Char
(
'u'
)
;
prefix
=
"u"
;
else
if
(
elementType
()
->
asDoubleType
()
!=
0
)
else
if
(
elementType
()
->
asDoubleType
()
!=
0
)
prefix
=
QLatin1Char
(
'd'
)
;
prefix
=
"d"
;
return
QString
(
"%1vec%2"
).
arg
(
prefix
).
arg
(
_dimension
);
return
QString
(
"%1vec%2"
).
arg
(
QLatin1String
(
prefix
)
)
.
arg
(
_dimension
);
}
}
void
VectorType
::
add
(
Symbol
*
symbol
)
void
VectorType
::
add
(
Symbol
*
symbol
)
...
@@ -265,16 +265,16 @@ bool VectorType::isLessThan(const Type *other) const
...
@@ -265,16 +265,16 @@ bool VectorType::isLessThan(const Type *other) const
QString
MatrixType
::
toString
()
const
QString
MatrixType
::
toString
()
const
{
{
QC
har
prefix
;
const
c
har
*
prefix
=
""
;
if
(
elementType
()
->
asBoolType
()
!=
0
)
if
(
elementType
()
->
asBoolType
()
!=
0
)
prefix
=
QLatin1Char
(
'b'
)
;
prefix
=
"b"
;
else
if
(
elementType
()
->
asIntType
()
!=
0
)
else
if
(
elementType
()
->
asIntType
()
!=
0
)
prefix
=
QLatin1Char
(
'i'
)
;
prefix
=
"i"
;
else
if
(
elementType
()
->
asUIntType
()
!=
0
)
else
if
(
elementType
()
->
asUIntType
()
!=
0
)
prefix
=
QLatin1Char
(
'u'
)
;
prefix
=
"u"
;
else
if
(
elementType
()
->
asDoubleType
()
!=
0
)
else
if
(
elementType
()
->
asDoubleType
()
!=
0
)
prefix
=
QLatin1Char
(
'd'
)
;
prefix
=
"d"
;
return
QString
(
"%1mat%2x%3"
).
arg
(
prefix
,
_columns
,
_rows
);
return
QString
(
"%1mat%2x%3"
).
arg
(
QLatin1String
(
prefix
)).
arg
(
_columns
).
arg
(
_rows
);
}
}
bool
MatrixType
::
isEqualTo
(
const
Type
*
other
)
const
bool
MatrixType
::
isEqualTo
(
const
Type
*
other
)
const
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment