Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit bd2e331c authored by Laurent Montel's avatar Laurent Montel 😁

kdelibs4support. Fix cmakelists.txt. Fix includes

parent 198eb372
......@@ -25,7 +25,7 @@
#include <QDomText>
#include <KIO/FileJob>
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <kmountpoint.h>
......
......@@ -24,7 +24,7 @@
#include "kget_debug.h"
#include <qdebug.h>
#include <KIO/Job>
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#ifdef HAVE_QGPGME
......
......@@ -12,7 +12,7 @@
#include "kget_debug.h"
#include <qdebug.h>
#include <KLocale>
#include <KLocalizedString>
KGetKJobAdapter::KGetKJobAdapter(QObject *parent, TransferHandler *transfer)
: KJob(parent),
......
......@@ -20,7 +20,7 @@
#include <QTextStream>
#include <KDebug>
#include <KLocale>
#include <KLocalizedString>
#include <kio/copyjob.h>
#include <kio/netaccess.h>
......
......@@ -23,7 +23,7 @@
#include "kget_debug.h"
#include <qdebug.h>
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include <QDomElement>
......
......@@ -40,7 +40,7 @@
#include <KDialogButtonBox>
#include <KIO/RenameDialog>
#include <KLocale>
#include <KLocalizedString>
#include <KSeparator>
#include <KStandardGuiItem>
......
......@@ -25,7 +25,7 @@
#include "kget_debug.h"
#include <qdebug.h>
#include <QIcon>
#include <KLocale>
#include <KLocalizedString>
struct VerificationModelPrivate
{
......
#Set supported mime type
SET(SUPPORTED_KGET_MIMETYPES "${SUPPORTED_KGET_MIMETYPES}application/x-bittorrent;" PARENT_SCOPE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
kde_enable_exceptions()
include_directories(
../../
......@@ -34,7 +34,7 @@ set(kget_bittorrentfactory_PART_SRCS
advanceddetails/webseedstab.cpp
)
kde4_add_ui_files(kget_bittorrentfactory_PART_SRCS
ki18n_wrap_ui(kget_bittorrentfactory_PART_SRCS
btdetailswidgetfrm.ui
scandlg.ui
advanceddetails/chunkdownloadview.ui
......@@ -42,10 +42,10 @@ kde4_add_ui_files(kget_bittorrentfactory_PART_SRCS
advanceddetails/webseedstab.ui
)
kde4_add_kcfg_files(kget_bittorrentfactory_PART_SRCS bittorrentsettings.kcfgc)
kde4_add_plugin(kget_bittorrentfactory ${kget_bittorrentfactory_PART_SRCS})
kconfig_add_kcfg_files(kget_bittorrentfactory_PART_SRCS bittorrentsettings.kcfgc)
add_library(kget_bittorrentfactory MODULE ${kget_bittorrentfactory_PART_SRCS})
target_link_libraries(kget_bittorrentfactory ${KDE4_KIO_LIBS} ${LIBKTORRENT_LIBRARIES} kgetcore)
target_link_libraries(kget_bittorrentfactory KF5::KIOCore ${LIBKTORRENT_LIBRARIES} kgetcore)
install(TARGETS kget_bittorrentfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_bittorrentfactory.desktop DESTINATION ${SERVICES_INSTALL_DIR})
......@@ -54,13 +54,13 @@ set(kcm_kget_bittorrentfactory_PART_SRCS
btsettingswidget.cpp
)
kde4_add_ui_files(kcm_kget_bittorrentfactory_PART_SRCS
ki18n_wrap_ui(kcm_kget_bittorrentfactory_PART_SRCS
btsettingswidget.ui
)
kde4_add_kcfg_files(kcm_kget_bittorrentfactory_PART_SRCS bittorrentsettings.kcfgc)
kde4_add_plugin(kcm_kget_bittorrentfactory ${kcm_kget_bittorrentfactory_PART_SRCS})
target_link_libraries(kcm_kget_bittorrentfactory ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
kconfig_add_kcfg_files(kcm_kget_bittorrentfactory_PART_SRCS bittorrentsettings.kcfgc)
add_library(kcm_kget_bittorrentfactory MODULE ${kcm_kget_bittorrentfactory_PART_SRCS})
target_link_libraries(kcm_kget_bittorrentfactory KF5::KIOCore)
install(TARGETS kcm_kget_bittorrentfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_bittorrentfactory_config.desktop DESTINATION ${SERVICES_INSTALL_DIR})
......@@ -12,12 +12,12 @@ set(kget_contentfetchfactory_PART_SRCS
scriptconfigadaptor.cpp
)
kde4_add_kcfg_files(kget_contentfetchfactory_PART_SRCS contentfetchsetting.kcfgc)
kconfig_add_kcfg_files(kget_contentfetchfactory_PART_SRCS contentfetchsetting.kcfgc)
kde4_add_plugin(kget_contentfetchfactory ${kget_contentfetchfactory_PART_SRCS})
add_library(kget_contentfetchfactory MODULE ${kget_contentfetchfactory_PART_SRCS})
target_link_libraries(kget_contentfetchfactory ${KDE4_KIO_LIBS}
${KDE4_KROSSCORE_LIBS} ${KDE4_KROSSUI_LIBS} kgetcore)
target_link_libraries(kget_contentfetchfactory KF5::KIOCore
KF5::KrossCore ${KDE4_KROSSUI_LIBS} kgetcore)
install(TARGETS kget_contentfetchfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_contentfetchfactory.desktop DESTINATION ${SERVICES_INSTALL_DIR})
......@@ -30,15 +30,15 @@ set(kcm_kget_contentfetchfactory_PART_SRCS
scriptconfigadaptor.cpp
)
kde4_add_ui_files(kcm_kget_contentfetchfactory_PART_SRCS
ki18n_wrap_ui(kcm_kget_contentfetchfactory_PART_SRCS
dlgcontentfetchsettingwidget.ui
dlgscriptediting.ui
)
kde4_add_kcfg_files(kcm_kget_contentfetchfactory_PART_SRCS contentfetchsetting.kcfgc)
kde4_add_plugin(kcm_kget_contentfetchfactory ${kcm_kget_contentfetchfactory_PART_SRCS})
target_link_libraries(kcm_kget_contentfetchfactory ${KDE4_KIO_LIBS}
${KDE4_KROSSCORE_LIBS} ${KDE4_KROSSUI_LIBS})
kconfig_add_kcfg_files(kcm_kget_contentfetchfactory_PART_SRCS contentfetchsetting.kcfgc)
add_library(kcm_kget_contentfetchfactory MODULE ${kcm_kget_contentfetchfactory_PART_SRCS})
target_link_libraries(kcm_kget_contentfetchfactory KF5::KIOCore
KF5::KrossCore ${KDE4_KROSSUI_LIBS})
install(TARGETS kcm_kget_contentfetchfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_contentfetchfactory_config.desktop DESTINATION ${SERVICES_INSTALL_DIR})
......@@ -37,7 +37,7 @@
#include <QPushButton>
#include <QDialogButtonBox>
#include <QIcon>
#include <KLocale>
#include <KLocalizedString>
#include <QFontDatabase>
TransferHistory::TransferHistory(QWidget *parent)
......
......@@ -16,7 +16,7 @@
#include <QDate>
#include <QUrl>
#include <KLocale>
#include <KLocalizedString>
TransferHistoryCategorizedDelegate::TransferHistoryCategorizedDelegate()
{
......
......@@ -27,7 +27,7 @@
#include <kio/global.h>
#include <KIconLoader>
#include <QIcon>
#include <KLocale>
#include <KLocalizedString>
#include <KRun>
TransferHistoryItemDelegate::TransferHistoryItemDelegate(QWidget *parent) : QStyledItemDelegate(),
......
......@@ -26,7 +26,7 @@
#include <QAction>
#include <QIcon>
#include <KLocale>
#include <KLocalizedString>
#include <KMimeType>
#include <KWindowSystem>
......
......@@ -26,7 +26,7 @@
#include <QCheckBox>
#include <QSortFilterProxyModel>
#include <KLocale>
#include <KLocalizedString>
DragDlg::DragDlg(KGetMetalink::Resources *resources, KGetMetalink::CommonData *commonData, QSortFilterProxyModel *countrySort, QSortFilterProxyModel *languageSort, QWidget *parent)
: KGetSaveSizeDialog("DragDlg", parent),
......
......@@ -29,7 +29,7 @@
#include <QSortFilterProxyModel>
#include <KStandardGuiItem>
#include <KLocale>
#include <KLocalizedString>
FileDlg::FileDlg(KGetMetalink::File *file, const QStringList &currentFileNames, QSortFilterProxyModel *countrySort, QSortFilterProxyModel *languageSort, QWidget *parent, bool edit)
: KGetSaveSizeDialog("FileDlg", parent),
......
......@@ -23,7 +23,7 @@
#include <QSortFilterProxyModel>
#include <KLocale>
#include <KLocalizedString>
#include <KStandardGuiItem>
MirrorAddDlg::MirrorAddDlg(MirrorModel *model, QWidget *parent, Qt::WFlags flags)
......
......@@ -32,7 +32,7 @@
#include <QFileInfo>
#include <QTimer>
#include <KLocale>
#include <KLocalizedString>
#include <QListWidgetItem>
#include <KColorScheme>
#include <KWindowSystem>
......@@ -307,7 +307,7 @@ void NewTransferDialog::checkInput()
//check if any sources are checked and for existing transfers or destinations
bool filesChecked = false;
if (m_multiple && folderValid) {
KListWidget *list = ui.listWidget;
QListWidget *list = ui.listWidget;
//check if some sources have been checked
for (int i = 0; i < list->count(); ++i) {
......
......@@ -55,7 +55,7 @@
</widget>
</item>
<item>
<widget class="KListWidget" name="listWidget"/>
<widget class="QListWidget" name="listWidget"/>
</item>
</layout>
</item>
......@@ -82,11 +82,6 @@
<extends>QFrame</extends>
<header>kurlrequester.h</header>
</customwidget>
<customwidget>
<class>KListWidget</class>
<extends>QListWidget</extends>
<header>klistwidget.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
......
......@@ -23,7 +23,7 @@
#include <QFile>
#include <QPushButton>
#include <KLocale>
#include <KLocalizedString>
RenameFile::RenameFile(FileModel *model, const QModelIndex &index, QWidget *parent, Qt::WFlags flags)
: QDialog(parent, flags),
......
......@@ -36,7 +36,7 @@
#include <QLayoutItem>
#include <KFileDialog>
#include <KLocale>
#include <KLocalizedString>
#include <KIconLoader>
const QStringList SignatureDlg::OWNERTRUST = QStringList() << i18nc("trust level", "Unknown") << i18nc("trust level", "Undefined") << i18nc("trust level", "Never") << i18nc("trust level", "Marginal") << i18nc("trust level", "Full") << i18nc("trust level", "Ultimate");
......
......@@ -21,7 +21,7 @@
#include <KMessageBox>
#include <KLineEdit>
#include <KLocale>
#include <KLocalizedString>
#include <QSortFilterProxyModel>
TransferSettingsDialog::TransferSettingsDialog(QWidget *parent, TransferHandler *transfer)
......
......@@ -19,7 +19,7 @@
#include "kget_debug.h"
#include <qdebug.h>
#include <QAction>
#include <KLocale>
#include <KLocalizedString>
#include <QMenu>
#include <KRun>
......
......@@ -21,7 +21,7 @@
#include <QSortFilterProxyModel>
#include <KLocale>
#include <KLocalizedString>
#include <KMessageBox>
#include "core/filemodel.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment