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
acea722d
Commit
acea722d
authored
14 years ago
by
con
Browse files
Options
Downloads
Patches
Plain Diff
Add a hook for the build system to specify a version description.
E.g. to show Qt Creator 1.3.85 (2.0.0-rc1)
parent
cf57bda9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/coreplugin/coreconstants.h
+6
-0
6 additions, 0 deletions
src/plugins/coreplugin/coreconstants.h
src/plugins/coreplugin/versiondialog.cpp
+11
-5
11 additions, 5 deletions
src/plugins/coreplugin/versiondialog.cpp
with
17 additions
and
5 deletions
src/plugins/coreplugin/coreconstants.h
+
6
−
0
View file @
acea722d
...
@@ -50,6 +50,12 @@ const char * const IDE_VERSION_LONG = IDE_VERSION;
...
@@ -50,6 +50,12 @@ const char * const IDE_VERSION_LONG = IDE_VERSION;
const
char
*
const
IDE_AUTHOR
=
"Nokia Corporation"
;
const
char
*
const
IDE_AUTHOR
=
"Nokia Corporation"
;
const
char
*
const
IDE_YEAR
=
"2010"
;
const
char
*
const
IDE_YEAR
=
"2010"
;
#ifdef IDE_VERSION_DESCRIPTION
const
char
*
const
IDE_VERSION_DESCRIPTION_STR
=
STRINGIFY
(
IDE_VERSION_DESCRIPTION
);
#else
const
char
*
const
IDE_VERSION_DESCRIPTION_STR
=
""
;
#endif
#ifdef IDE_REVISION
#ifdef IDE_REVISION
const
char
*
const
IDE_REVISION_STR
=
STRINGIFY
(
IDE_REVISION
);
const
char
*
const
IDE_REVISION_STR
=
STRINGIFY
(
IDE_REVISION
);
#else
#else
...
...
This diff is collapsed.
Click to expand it.
src/plugins/coreplugin/versiondialog.cpp
+
11
−
5
View file @
acea722d
...
@@ -61,7 +61,11 @@ VersionDialog::VersionDialog(QWidget *parent)
...
@@ -61,7 +61,11 @@ VersionDialog::VersionDialog(QWidget *parent)
layout
->
setSizeConstraint
(
QLayout
::
SetFixedSize
);
layout
->
setSizeConstraint
(
QLayout
::
SetFixedSize
);
QString
version
=
QLatin1String
(
IDE_VERSION_LONG
);
QString
version
=
QLatin1String
(
IDE_VERSION_LONG
);
version
+=
QDate
(
2007
,
25
,
10
).
toString
(
Qt
::
SystemLocaleDate
);
QString
ideVersionDescription
;
#ifdef IDE_VERSION_DESCRIPTION
ideVersionDescription
=
tr
(
"(%1)"
).
arg
(
QLatin1String
(
IDE_VERSION_DESCRIPTION_STR
));
#endif
QString
ideRev
;
QString
ideRev
;
#ifdef IDE_REVISION
#ifdef IDE_REVISION
...
@@ -70,21 +74,23 @@ VersionDialog::VersionDialog(QWidget *parent)
...
@@ -70,21 +74,23 @@ VersionDialog::VersionDialog(QWidget *parent)
#endif
#endif
const
QString
description
=
tr
(
const
QString
description
=
tr
(
"<h3>Qt Creator %1</h3>"
"<h3>Qt Creator %1
%8
</h3>"
"Based on Qt %2 (%3 bit)<br/>"
"Based on Qt %2 (%3 bit)<br/>"
"<br/>"
"<br/>"
"Built on %4 at %5<br />"
"Built on %4 at %5<br />"
"<br/>"
"<br/>"
"%
8
"
"%
9
"
"<br/>"
"<br/>"
"Copyright 2008-%6 %7. All rights reserved.<br/>"
"Copyright 2008-%6 %7. All rights reserved.<br/>"
"<br/>"
"<br/>"
"The program is provided AS IS with NO WARRANTY OF ANY KIND, "
"The program is provided AS IS with NO WARRANTY OF ANY KIND, "
"INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A "
"INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A "
"PARTICULAR PURPOSE.<br/>"
)
"PARTICULAR PURPOSE.<br/>"
)
.
arg
(
version
,
QLatin1String
(
QT_VERSION_STR
),
QString
::
number
(
QSysInfo
::
WordSize
),
.
arg
(
version
,
QLatin1String
(
QT_VERSION_STR
),
QString
::
number
(
QSysInfo
::
WordSize
),
QLatin1String
(
__DATE__
),
QLatin1String
(
__TIME__
),
QLatin1String
(
IDE_YEAR
),
QLatin1String
(
__DATE__
),
QLatin1String
(
__TIME__
),
QLatin1String
(
IDE_YEAR
),
(
QLatin1String
(
IDE_AUTHOR
)),
ideRev
);
(
QLatin1String
(
IDE_AUTHOR
)),
ideVersionDescription
,
ideRev
);
QLabel
*
copyRightLabel
=
new
QLabel
(
description
);
QLabel
*
copyRightLabel
=
new
QLabel
(
description
);
copyRightLabel
->
setWordWrap
(
true
);
copyRightLabel
->
setWordWrap
(
true
);
...
...
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