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
Utilities
KCalc
Commits
0817b80a
Commit
0817b80a
authored
Mar 28, 2021
by
Nicolas Fella
Browse files
Port away from kinit
KInit is planned to go away
https://phabricator.kde.org/T14298
parent
eaec2d00
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
0817b80a
...
...
@@ -39,7 +39,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
DocTools
GuiAddons
I18n
Init
Notifications
XmlGui
)
...
...
@@ -106,9 +105,9 @@ if (INSTALL_ICONS)
ecm_install_icons
(
ICONS
${
ICONS_SRCS
}
DESTINATION
${
KDE_INSTALL_ICONDIR
}
)
endif
()
kf5_add_kdeinit
_executable
(
kcalc
${
kcalc_KDEINIT_SRCS
}
)
add
_executable
(
kcalc
${
kcalc_KDEINIT_SRCS
}
)
target_link_libraries
(
kdeinit_
kcalc
target_link_libraries
(
kcalc
Qt5::Core
Qt5::Widgets
KF5::CoreAddons
...
...
@@ -121,9 +120,6 @@ target_link_libraries(kdeinit_kcalc
knumber
)
install
(
TARGETS kdeinit_kcalc
${
KDE_INSTALL_TARGETS_DEFAULT_ARGS
}
)
target_link_libraries
(
kcalc kdeinit_kcalc
)
install
(
TARGETS kcalc
${
KDE_INSTALL_TARGETS_DEFAULT_ARGS
}
)
########### install files ###############
...
...
kcalc.cpp
View file @
0817b80a
...
...
@@ -2384,10 +2384,10 @@ void KCalculator::slotPaste() {
//------------------------------------------------------------------------------
// Name:
kde
main
// Name: main
// Desc: entry point of the application
//------------------------------------------------------------------------------
extern
"C"
Q_DECL_EXPORT
int
kde
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
QApplication
app
(
argc
,
argv
);
...
...
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