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
Plasma Mobile
KRecorder
Commits
993549a8
Commit
993549a8
authored
May 10, 2021
by
Bhushan Shah
📱
Browse files
Adapt version to PlaMo Gear 21.05
parent
3a86adcf
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
993549a8
...
...
@@ -5,6 +5,7 @@
#
project
(
krecorder
)
set
(
PROJECT_VERSION
"21.05"
)
cmake_minimum_required
(
VERSION 3.0
)
...
...
@@ -23,6 +24,11 @@ include(ECMSetupVersion)
include
(
ECMGenerateHeaders
)
include
(
ECMPoQmTools
)
# setup version
ecm_setup_version
(
${
PROJECT_VERSION
}
VARIABLE_PREFIX KRECORDER
VERSION_HEADER
${
CMAKE_CURRENT_BINARY_DIR
}
/version.h
)
################# Find dependencies #################
find_package
(
Qt5 REQUIRED COMPONENTS Core Gui Widgets Qml QuickControls2 Multimedia
)
find_package
(
KF5Kirigami2
)
...
...
src/CMakeLists.txt
View file @
993549a8
...
...
@@ -28,6 +28,8 @@ target_link_libraries(krecorder
KF5::ConfigGui
)
target_include_directories
(
krecorder PRIVATE
${
CMAKE_BINARY_DIR
}
)
install
(
TARGETS krecorder
${
KF5_INSTALL_TARGETS_DEFAULT_ARGS
}
)
if
(
CMAKE_SYSTEM_NAME STREQUAL
"Android"
)
...
...
src/main.cpp
View file @
993549a8
...
...
@@ -11,6 +11,7 @@
#include
<QUrl>
#include
<KLocalizedContext>
#include
<QAudioRecorder>
#include
<QCommandLineParser>
#include
"recordingmodel.h"
#include
"utils.h"
...
...
@@ -18,14 +19,19 @@
#include
"audiorecorder.h"
#include
"audioprober.h"
#include
"settingsmodel.h"
#include
"version.h"
Q_DECL_EXPORT
int
main
(
int
argc
,
char
*
argv
[])
{
QCommandLineParser
parser
;
QGuiApplication
::
setAttribute
(
Qt
::
AA_EnableHighDpiScaling
);
parser
.
addVersionOption
();
QApplication
app
(
argc
,
argv
);
QCoreApplication
::
setOrganizationName
(
"KDE"
);
QCoreApplication
::
setOrganizationDomain
(
"kde.org"
);
QCoreApplication
::
setApplicationName
(
"KRecorder"
);
QCoreApplication
::
setApplicationVersion
(
QStringLiteral
(
KRECORDER_VERSION_STRING
));
parser
.
process
(
app
);
qmlRegisterType
<
Recording
>
(
"KRecorder"
,
1
,
0
,
"Recording"
);
qmlRegisterType
<
AudioProber
>
(
"KRecorder"
,
1
,
0
,
"AudioProber"
);
...
...
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