Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
sailfish-apps
Received
Commits
26907c28
Commit
26907c28
authored
May 20, 2018
by
kempe
Browse files
[FEATURE] Show version on about page
parent
466ce9d2
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
47 additions
and
1 deletion
+47
-1
harbour-received.pro
harbour-received.pro
+8
-0
qml/pages/AboutPageForm.ui.qml
qml/pages/AboutPageForm.ui.qml
+7
-0
rpm/harbour-received.spec
rpm/harbour-received.spec
+3
-1
rpm/harbour-received.yaml
rpm/harbour-received.yaml
+7
-0
src/harbour-received.cpp
src/harbour-received.cpp
+2
-0
translations/harbour-received-es.ts
translations/harbour-received-es.ts
+4
-0
translations/harbour-received-fr.ts
translations/harbour-received-fr.ts
+4
-0
translations/harbour-received-ru.ts
translations/harbour-received-ru.ts
+4
-0
translations/harbour-received-sv.ts
translations/harbour-received-sv.ts
+4
-0
translations/harbour-received.ts
translations/harbour-received.ts
+4
-0
No files found.
harbour-received.pro
View file @
26907c28
...
...
@@ -15,6 +15,14 @@ TARGET = harbour-received
QT
+=
multimedia
dbus
CONFIG
+=
sailfishapp
#
Write
version
file
VERSION_H
=
\
"$${LITERAL_HASH}ifndef RECEIVED_VERSION"
\
"$${LITERAL_HASH} define RECEIVED_VERSION \"
$$
VERSION
\
""
\
"$${LITERAL_HASH} define RECEIVED_BUILD_NUMBER \"
$$
BUILD_NUMBER
\
""
\
"$${LITERAL_HASH}endif"
write_file
(
$$$$
OUT_PWD
/
received_version
.
h
,
VERSION_H
)
HEADERS
+=
\
src
/
settings
.
h
\
src
/
audioplayer
.
h
\
...
...
qml/pages/AboutPageForm.ui.qml
View file @
26907c28
...
...
@@ -38,6 +38,13 @@ Page {
text
:
"
Received
"
}
Label
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
font.pixelSize
:
Theme
.
fontSizeExtraSmall
color
:
Theme
.
secondaryColor
text
:
qsTr
(
"
Version:
"
)
+
Qt
.
application
.
version
}
ButtonLayout
{
width
:
parent
.
width
...
...
rpm/harbour-received.spec
View file @
26907c28
...
...
@@ -43,7 +43,9 @@ Received is a unofficial client for radio.net (rad.io). For now it is possible s
# >> build pre
# << build pre
%qtc_qmake5
%qtc_qmake5 \
VERSION=%{version} \
BUILD_NUMBER=%{release}
%qtc_make %{?_smp_mflags}
...
...
rpm/harbour-received.yaml
View file @
26907c28
...
...
@@ -11,15 +11,22 @@ Description: |
Received is a unofficial client for radio.net (rad.io). For now it is possible search, browse according to different categories and favourites(not connected to radio.net favourites)
Configure
:
none
Builder
:
qtc5
QMakeOptions
:
-
VERSION=%{version}
-
BUILD_NUMBER=%{release}
PkgConfigBR
:
-
sailfishapp >= 1.0.2
-
Qt5Core
-
Qt5Qml
-
Qt5Quick
-
Qt5Multimedia
Requires
:
-
sailfishsilica-qt5 >= 0.10.9
-
pyotherside-qml-plugin-python3-qt5 >= 1.4.0
Files
:
-
'
%{_bindir}'
-
'
%{_datadir}/%{name}'
...
...
src/harbour-received.cpp
View file @
26907c28
...
...
@@ -42,6 +42,7 @@
#include "src/settings.h"
#include "src/audioplayer.h"
#include <received_version.h>
void
setupSettings
(
Settings
&
settings
)
{
...
...
@@ -59,6 +60,7 @@ int main(int argc, char *argv[])
{
//return SailfishApp::main(argc, argv);
QGuiApplication
*
app
=
SailfishApp
::
application
(
argc
,
argv
);
app
->
setApplicationVersion
(
QStringLiteral
(
RECEIVED_VERSION
)
+
"-"
+
QStringLiteral
(
RECEIVED_BUILD_NUMBER
));
QQuickView
*
view
=
SailfishApp
::
createView
();
qmlRegisterSingletonType
<
AudioPlayer
>
(
"it.kempe.AudioPlayer"
,
1
,
0
,
"AudioPlayer"
,
audioPlayerProvider
);
...
...
translations/harbour-received-es.ts
View file @
26907c28
...
...
@@ -15,6 +15,10 @@
<
source
>
Source
code
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
source
>
Version
:
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ApiLanguageListModel
<
/name
>
...
...
translations/harbour-received-fr.ts
View file @
26907c28
...
...
@@ -15,6 +15,10 @@
<
source
>
Source
code
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
source
>
Version
:
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ApiLanguageListModel
<
/name
>
...
...
translations/harbour-received-ru.ts
View file @
26907c28
...
...
@@ -15,6 +15,10 @@
<
source
>
Source
code
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
source
>
Version
:
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ApiLanguageListModel
<
/name
>
...
...
translations/harbour-received-sv.ts
View file @
26907c28
...
...
@@ -15,6 +15,10 @@
<
source
>
Source
code
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
source
>
Version
:
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ApiLanguageListModel
<
/name
>
...
...
translations/harbour-received.ts
View file @
26907c28
...
...
@@ -15,6 +15,10 @@
<
source
>
Source
code
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
source
>
Version
:
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ApiLanguageListModel
<
/name
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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