Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Krfb
Commits
78205f91
Commit
78205f91
authored
Feb 12, 2022
by
Laurent Montel
😁
Browse files
Make it compile without deprecated methods
parent
59db6f6b
Pipeline
#136377
passed with stage
in 1 minute and 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
78205f91
...
...
@@ -63,7 +63,6 @@ endif(WIN32)
add_definitions
(
-DQT_DEPRECATED_WARNINGS
-DQT_DISABLE_DEPRECATED_BEFORE=0x050600
-DQT_USE_QSTRINGBUILDER
-DQT_NO_CAST_TO_ASCII
-DQT_NO_CAST_FROM_ASCII
...
...
@@ -74,6 +73,10 @@ add_definitions(
-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
)
add_definitions
(
-DQT_DISABLE_DEPRECATED_BEFORE=0x050f02
)
add_definitions
(
-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055A00
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
${
CMAKE_BINARY_DIR
}
)
find_package
(
LibVNCServer REQUIRED
)
...
...
krfb/main.cpp
View file @
78205f91
...
...
@@ -38,8 +38,6 @@
#include <QCommandLineOption>
static
const
char
description
[]
=
I18N_NOOP
(
"VNC-compatible server to share "
"desktops"
);
static
bool
checkX11Capabilities
()
{
int
bp1
,
bp2
,
majorv
,
minorv
;
...
...
@@ -95,7 +93,7 @@ int main(int argc, char *argv[])
KAboutData
aboutData
(
QStringLiteral
(
"krfb"
),
i18n
(
"Desktop Sharing"
),
QStringLiteral
(
KRFB_VERSION_STRING
),
i18n
(
description
),
i18n
(
"VNC-compatible server to share desktops"
),
KAboutLicense
::
GPL
,
i18n
(
"(c) 2009-2010, Collabora Ltd.
\n
"
"(c) 2007, Alessandro Praduroux
\n
"
...
...
Write
Preview
Supports
Markdown
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