Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
acea722d
Commit
acea722d
authored
May 11, 2010
by
con
Browse files
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/coreconstants.h
View file @
acea722d
...
...
@@ -50,6 +50,12 @@ const char * const IDE_VERSION_LONG = IDE_VERSION;
const
char
*
const
IDE_AUTHOR
=
"Nokia Corporation"
;
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
const
char
*
const
IDE_REVISION_STR
=
STRINGIFY
(
IDE_REVISION
);
#else
...
...
src/plugins/coreplugin/versiondialog.cpp
View file @
acea722d
...
...
@@ -61,7 +61,11 @@ VersionDialog::VersionDialog(QWidget *parent)
layout
->
setSizeConstraint
(
QLayout
::
SetFixedSize
);
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
;
#ifdef IDE_REVISION
...
...
@@ -70,21 +74,23 @@ VersionDialog::VersionDialog(QWidget *parent)
#endif
const
QString
description
=
tr
(
"<h3>Qt Creator %1</h3>"
"<h3>Qt Creator %1
%8
</h3>"
"Based on Qt %2 (%3 bit)<br/>"
"<br/>"
"Built on %4 at %5<br />"
"<br/>"
"%
8
"
"%
9
"
"<br/>"
"Copyright 2008-%6 %7. All rights reserved.<br/>"
"<br/>"
"The program is provided AS IS with NO WARRANTY OF ANY KIND, "
"INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A "
"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
(
IDE_AUTHOR
)),
ideRev
);
(
QLatin1String
(
IDE_AUTHOR
)),
ideVersionDescription
,
ideRev
);
QLabel
*
copyRightLabel
=
new
QLabel
(
description
);
copyRightLabel
->
setWordWrap
(
true
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment