Commit 247bc705 authored by Michael Reeves's avatar Michael Reeves
Browse files

*Remove KUrl from action menu plugin.

parent 8d02dd90
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS KIO
WidgetsAddons # KMessageBox
CoreAddons
)
add_library(kdiff3fileitemaction MODULE kdiff3fileitemaction.cpp)
target_link_libraries(kdiff3fileitemaction ${KDiff3_LIBRARIES} KF5::WidgetsAddons KF5::KIOWidgets ${LibKDiff3_LIBRARIES})
target_link_libraries(kdiff3fileitemaction ${KDiff3_LIBRARIES} KF5::CoreAddons KF5::WidgetsAddons KF5::KIOWidgets ${LibKDiff3_LIBRARIES})
install(TARGETS kdiff3fileitemaction DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kdiff3fileitemaction.desktop DESTINATION ${SERVICES_INSTALL_DIR})
......@@ -23,11 +23,11 @@
#include <kstandarddirs.h>
#include <QAction>
#include <QMenu>
#include <QUrl>
#include <klocalizedstring.h>
#include <kpluginfactory.h>
#include <kpluginloader.h>
#include <kurl.h>
#include <kconfig.h>
#include <kconfiggroup.h>
#include <kmessagebox.h>
......@@ -97,8 +97,8 @@ QList<QAction*> KDiff3FileItemAction::actions( const KFileItemListProperties& fi
// remember currently selected files (copy to a QStringList)
KUrl::List itemList = fileItemInfos.urlList();
foreach ( const KUrl& item, itemList )
QList<QUrl> itemList = fileItemInfos.urlList();
foreach ( const QUrl& item, itemList )
{
//m_urlList.append( item.url() );
pThis->m_list.append( item.url() );
......
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