Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-tutorial-porting
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
Paul Tvete
qt-tutorial-porting
Commits
972c3ae6
Commit
972c3ae6
authored
6 years ago
by
Paul Tvete
Browse files
Options
Downloads
Patches
Plain Diff
Use QString instead of const char *
parent
9c14e587
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
t14/lcdrange.cpp
+1
-1
1 addition, 1 deletion
t14/lcdrange.cpp
t14/lcdrange.h
+1
-1
1 addition, 1 deletion
t14/lcdrange.h
with
2 additions
and
2 deletions
t14/lcdrange.cpp
+
1
−
1
View file @
972c3ae6
...
...
@@ -44,7 +44,7 @@ int LCDRange::value() const
return
sBar
->
value
();
}
const
char
*
LCDRange
::
text
()
const
QString
LCDRange
::
text
()
const
{
return
label
->
text
();
}
...
...
This diff is collapsed.
Click to expand it.
t14/lcdrange.h
+
1
−
1
View file @
972c3ae6
...
...
@@ -22,7 +22,7 @@ public:
LCDRange
(
const
char
*
s
,
QWidget
*
parent
=
0
);
int
value
()
const
;
const
char
*
text
()
const
;
QString
text
()
const
;
public
slots
:
void
setValue
(
int
);
void
setRange
(
int
minVal
,
int
maxVal
);
...
...
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