Commit fc645ff9 authored by Harald Sitter's avatar Harald Sitter 🌺

fully move away from kparts dependency

parent 7276e6f8
......@@ -36,14 +36,14 @@ set(filelight_SRCS
mainWindow.cpp
main.cpp)
message(WARNING "sort srcs")
ki18n_wrap_ui(filelight_SRCS dialog.ui)
add_executable(filelight ${filelight_SRCS})
target_link_libraries(filelight
KF5::Parts
KF5::I18n
KF5::XmlGui
KF5::KIOWidgets # Only used for KDirLister, may be able to move away from that.
)
install(TARGETS filelight ${INSTALL_TARGETS_DEFAULT_ARGS})
......@@ -22,7 +22,7 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <kparts/mainwindow.h>
#include "part.h"
class KSqueezedTextLabel;
class KHistoryComboBox;
......@@ -30,12 +30,8 @@ class KRecentFilesAction;
class HistoryCollection;
#include "part.h"
namespace Filelight {
class Part;
class MainWindow : public Part // Maybe use qmainwindow
{
Q_OBJECT
......
......@@ -22,14 +22,12 @@
#ifndef FILELIGHTPART_H
#define FILELIGHTPART_H
#include <KParts/BrowserExtension>
#include <KParts/StatusBarExtension>
#include <KParts/Part>
#include <QUrl>
#include <KXmlGuiWindow>
#include <QLabel>
class KJob;
class QLabel;
// COMPAT
//using KParts::StatusBarExtension;
......
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