mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
generic: adjust
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d02586d7fe
commit
35d4286a92
6 changed files with 26 additions and 27 deletions
|
@ -3,8 +3,8 @@ project(karchivemanager)
|
||||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
include(FeatureSummary)
|
include(FeatureSummary)
|
||||||
|
|
||||||
find_package(KDE4 4.19.0 REQUIRED)
|
find_package(KDELibs4 4.23.0 REQUIRED)
|
||||||
include(KDE4Defaults)
|
|
||||||
include_directories(${KDE4_INCLUDES})
|
include_directories(${KDE4_INCLUDES})
|
||||||
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
||||||
endif()
|
endif()
|
||||||
|
@ -29,8 +29,8 @@ set(karchivemanager_sources
|
||||||
|
|
||||||
add_executable(karchivemanager ${karchivemanager_sources})
|
add_executable(karchivemanager ${karchivemanager_sources})
|
||||||
target_link_libraries(karchivemanager
|
target_link_libraries(karchivemanager
|
||||||
${KDE4_KDEUI_LIBS}
|
KDE4::kdeui
|
||||||
${KDE4_KFILE_LIBS}
|
KDE4::kfile
|
||||||
${LibArchive_LIBRARIES}
|
${LibArchive_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,5 @@
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
|
@ -27,12 +27,11 @@ int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
|
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
|
||||||
|
|
||||||
KAboutData aboutData("karchivemanager", 0, ki18n("Archive Manager"),
|
KAboutData aboutData(
|
||||||
|
"karchivemanager", 0, ki18n("Archive Manager"),
|
||||||
"1.0.0", ki18n("Simple archive manager for KDE."),
|
"1.0.0", ki18n("Simple archive manager for KDE."),
|
||||||
KAboutData::License_GPL_V2,
|
KAboutData::License_GPL_V2,
|
||||||
ki18n("(c) 2018 Ivailo Monev"),
|
ki18n("(c) 2018 Ivailo Monev")
|
||||||
KLocalizedString(),
|
|
||||||
"http://github.com/fluxer/katana"
|
|
||||||
);
|
);
|
||||||
|
|
||||||
aboutData.addAuthor(ki18n("Ivailo Monev"),
|
aboutData.addAuthor(ki18n("Ivailo Monev"),
|
||||||
|
|
|
@ -24,12 +24,11 @@
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
KAboutData aboutData("kman", 0, ki18n("KMan"),
|
KAboutData aboutData(
|
||||||
|
"kman", 0, ki18n("KMan"),
|
||||||
"1.0.0", ki18n("Simple manual page reader for KDE."),
|
"1.0.0", ki18n("Simple manual page reader for KDE."),
|
||||||
KAboutData::License_GPL_V2,
|
KAboutData::License_GPL_V2,
|
||||||
ki18n("(c) 2018 Ivailo Monev"),
|
ki18n("(c) 2018 Ivailo Monev")
|
||||||
KLocalizedString(),
|
|
||||||
"http://github.com/fluxer/katana"
|
|
||||||
);
|
);
|
||||||
|
|
||||||
aboutData.addAuthor(ki18n("Ivailo Monev"),
|
aboutData.addAuthor(ki18n("Ivailo Monev"),
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
project(kupdatenotifier)
|
project(kupdatenotifier)
|
||||||
|
|
||||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
find_package(KDE4 4.21.0 REQUIRED)
|
include(FeatureSummary)
|
||||||
include(KDE4Defaults)
|
|
||||||
|
find_package(KDELibs4 4.23.0 REQUIRED)
|
||||||
|
|
||||||
include_directories(${KDE4_INCLUDES})
|
include_directories(${KDE4_INCLUDES})
|
||||||
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
||||||
endif()
|
endif()
|
||||||
|
@ -16,9 +18,12 @@ set(kupdatenotifier_SRCS
|
||||||
|
|
||||||
add_executable(kupdatenotifier ${kupdatenotifier_SRCS})
|
add_executable(kupdatenotifier ${kupdatenotifier_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kupdatenotifier ${KDE4_KDEUI_LIBS})
|
target_link_libraries(kupdatenotifier KDE4::kdeui)
|
||||||
|
|
||||||
install(TARGETS kupdatenotifier ${INSTALL_TARGETS_DEFAULT_ARGS})
|
install(
|
||||||
|
TARGETS kupdatenotifier
|
||||||
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,7 @@ int main(int argc, char** argv)
|
||||||
"kupdatenotifier", 0, ki18n("KUpdateNotifier"),
|
"kupdatenotifier", 0, ki18n("KUpdateNotifier"),
|
||||||
"1.0.0", ki18n("A panel applet for software updates notification."),
|
"1.0.0", ki18n("A panel applet for software updates notification."),
|
||||||
KAboutData::License_GPL_V2,
|
KAboutData::License_GPL_V2,
|
||||||
ki18n("(c) 2022 Ivailo Monev"),
|
ki18n("(c) 2022 Ivailo Monev")
|
||||||
KLocalizedString(),
|
|
||||||
"http://github.com/fluxer/katana"
|
|
||||||
);
|
);
|
||||||
|
|
||||||
aboutData.addAuthor(
|
aboutData.addAuthor(
|
||||||
|
@ -44,7 +42,6 @@ int main(int argc, char** argv)
|
||||||
aboutData.setProgramIconName(QLatin1String("system-software-update"));
|
aboutData.setProgramIconName(QLatin1String("system-software-update"));
|
||||||
|
|
||||||
KCmdLineArgs::init(argc, argv, &aboutData);
|
KCmdLineArgs::init(argc, argv, &aboutData);
|
||||||
KUniqueApplication::addCmdLineOptions();
|
|
||||||
|
|
||||||
KUniqueApplication kupdatenotifierapp;
|
KUniqueApplication kupdatenotifierapp;
|
||||||
kupdatenotifierapp.setQuitOnLastWindowClosed(false);
|
kupdatenotifierapp.setQuitOnLastWindowClosed(false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue