Commit 32ee6257 authored by Laurent Montel's avatar Laurent Montel 😁

Remove unused includes

parent 15fe4fe0
Pipeline #6744 passed with stage
in 13 minutes and 17 seconds
......@@ -23,7 +23,6 @@
#include <QObject>
#include <QStringList>
#include <KUrl>
#include "interfaces.h"
......
......@@ -21,13 +21,10 @@
#include "mlt++/Mlt.h"
#include "renderjob.h"
#include <QApplication>
#include <QDebug>
#include <QDir>
#include <QDomDocument>
#include <QFileInfo>
#include <QString>
#include <QStringList>
#include <QUrl>
#include <QObject>
#include <cstdio>
......
......@@ -24,8 +24,8 @@
#include <QObject>
#include <QProcess>
#include <QTime>
#include <QFile>
// Testing
#include <QTemporaryFile>
#include <QTextStream>
class RenderJob : public QObject
......
......@@ -23,7 +23,6 @@
#define ASSETSREPOSITORY_H
#include "definitions.h"
#include <QObject>
#include <QSet>
#include <memory>
#include <mlt++/Mlt.h>
......
......@@ -25,7 +25,6 @@
#include <QDebug>
#include <QFont>
#include <QIcon>
#include <QPainter>
AssetIconProvider::AssetIconProvider(bool effect)
......
......@@ -37,12 +37,10 @@
#include <KDualAction>
#include <KSqueezedTextLabel>
#include <QApplication>
#include <QDebug>
#include <QHBoxLayout>
#include <QLabel>
#include <QToolBar>
#include <QToolButton>
#include <QVBoxLayout>
#include <QScrollArea>
#include <klocalizedstring.h>
AssetPanel::AssetPanel(QWidget *parent)
......
......@@ -22,8 +22,8 @@
#ifndef ASSETPANEL_H
#define ASSETPANEL_H
#include <QScrollArea>
#include <QVBoxLayout>
#include <QWidget>
#include <memory>
#include "definitions.h"
......
......@@ -27,6 +27,8 @@
#include "rotoscoping/bpoint.h"
#include "rotoscoping/rotohelper.hpp"
#include <QSize>
#include <QLineF>
#include <QDebug>
#include <QJsonDocument>
#include <mlt++/Mlt.h>
......
......@@ -27,7 +27,6 @@
#include "keyframemodel.hpp"
#include "undohelper.hpp"
#include <QAbstractListModel>
#include <QReadWriteLock>
#include <QObject>
......
......@@ -23,7 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "assets/model/assetparametermodel.hpp"
#include "monitor/monitor.h"
#include <QSize>
#include <utility>
KeyframeMonitorHelper::KeyframeMonitorHelper(Monitor *monitor, std::shared_ptr<AssetParameterModel> model, const QPersistentModelIndex &index, QObject *parent)
: QObject(parent)
......
......@@ -26,7 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "bpoint.h"
#include <QPersistentModelIndex>
#include <QVariant>
#include <QWidget>
class Monitor;
......
......@@ -27,7 +27,6 @@
#include <QAbstractListModel>
#include <QDomElement>
#include <QJsonDocument>
#include <QUndoCommand>
#include <unordered_map>
#include <memory>
......
......@@ -32,7 +32,6 @@
#include <QDir>
#include <QFontDatabase>
#include <QInputDialog>
#include <QLabel>
#include <QMenu>
#include <QStandardPaths>
#include <QVBoxLayout>
......
......@@ -31,7 +31,6 @@
#include <QDialog>
#include <QDialogButtonBox>
#include <QDir>
#include <QDomElement>
#include <QLineEdit>
#include <QMenu>
#include <QStandardPaths>
......
......@@ -29,7 +29,7 @@
#include <KMessageWidget>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
ButtonParamWidget::ButtonParamWidget(std::shared_ptr<AssetParameterModel> model, QModelIndex index, QWidget *parent)
: AbstractParamWidget(std::move(model), index, parent)
......
......@@ -26,10 +26,10 @@
#include "core.h"
#include <QPushButton>
#include <QHBoxLayout>
#include <QClipboard>
#include <QLabel>
#include <QApplication>
#include <QVBoxLayout>
ClickableLabelParamWidget::ClickableLabelParamWidget(std::shared_ptr<AssetParameterModel> model, QModelIndex index, QWidget *parent)
: AbstractParamWidget(std::move(model), index, parent)
......
......@@ -21,7 +21,6 @@
#include "colorwheel.h"
#include <qmath.h>
#include <utility>
#include <QDebug>
NegQColor NegQColor::fromHsvF(qreal h, qreal s, qreal l, qreal a)
{
......
......@@ -22,7 +22,6 @@
#include "bpoint.h"
#include <QList>
#include <QObject>
#include <QString>
class CubicBezierSpline
......
......@@ -28,16 +28,13 @@
// Qt includes.
#include <QEvent>
#include <QMouseEvent>
#include <QPaintEvent>
#include <QPainter>
#include <QPen>
#include <QPixmap>
#include <QPoint>
#include <QRect>
#include <QSpinBox>
#define bounds(x, a, b) (x < a ? a : (x > b ? b : x))
#define MOUSE_AWAY_THRES 15
......
......@@ -28,10 +28,7 @@
#include "timecodedisplay.h"
#include "widgets/geometrywidget.h"
#include <mlt++/MltGeometry.h>
#include <QHBoxLayout>
#include <QLabel>
#include <QSlider>
#include <QVBoxLayout>
GeometryEditWidget::GeometryEditWidget(std::shared_ptr<AssetParameterModel> model, QModelIndex index, QSize frameSize, QWidget *parent)
: AbstractParamWidget(std::move(model), index, parent)
......
......@@ -23,7 +23,6 @@
#define GEOMEDITWIDGET_H
#include "timecode.h"
#include <QString>
#include <QWidget>
#include "abstractparamwidget.hpp"
......
......@@ -36,9 +36,7 @@
#include <KSelectAction>
#include <QApplication>
#include <QClipboard>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QMenu>
#include <QPointer>
#include <QToolButton>
......
......@@ -21,9 +21,9 @@
#define LUMALIFTGAINPARAMWIDGET_H
#include "abstractparamwidget.hpp"
#include <QDomNodeList>
#include <QLocale>
#include <QWidget>
#include <QDomElement>
class ColorWheel;
......
......@@ -20,7 +20,6 @@
#include "abstractparamwidget.hpp"
#include "timecode.h"
#include <QString>
#include <QWidget>
class QSlider;
......
......@@ -31,7 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "jobs/loadjob.hpp"
#include "jobs/thumbjob.hpp"
#include <QDomElement>
#include <QPainter>
#include <QVariant>
#include <utility>
......
......@@ -65,7 +65,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "kdenlive_debug.h"
#include <QCryptographicHash>
#include <QDesktopServices>
#include <QDialogButtonBox>
#include <QDrag>
#include <QFile>
#include <QMenu>
......@@ -74,7 +73,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QUndoCommand>
#include <QUrl>
#include <QVBoxLayout>
#include <QtConcurrent>
#include <utility>
/**
* @class BinItemDelegate
......
......@@ -28,16 +28,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <KMessageWidget>
#include <QApplication>
#include <QDir>
#include <QDomElement>
#include <QFuture>
#include <QLineEdit>
#include <QListView>
#include <QMutex>
#include <QPainter>
#include <QPushButton>
#include <QStyledItemDelegate>
#include <QTreeView>
#include <QUrl>
#include <QWidget>
......
......@@ -20,7 +20,6 @@
#ifndef BINCOMMANDS_H
#define BINCOMMANDS_H
#include <QDomElement>
#include <QMap>
#include <QUndoCommand>
......
......@@ -36,7 +36,6 @@
#include <QDomDocument>
#include <QMimeDatabase>
#include <QProgressDialog>
#include <QWindow>
#include <utility>
namespace {
......
......@@ -21,7 +21,6 @@
#include "filewatcher.hpp"
#include <QDebug>
#include <QFileInfo>
FileWatcher::FileWatcher(QObject *parent)
......
......@@ -23,7 +23,6 @@
#include "assets/model/assetparametermodel.hpp"
#include "assets/view/assetparameterview.hpp"
#include <QDialog>
#include <QDomElement>
#include <QMenu>
#include <QPair>
#include <QPixmap>
......
......@@ -61,7 +61,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QDir>
#include <QDomElement>
#include <QFile>
#include <QtConcurrent>
#include <memory>
#pragma GCC diagnostic push
......
......@@ -30,7 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QFuture>
#include <QMutex>
#include <QUrl>
#include <memory>
class ClipPropertiesController;
......
......@@ -24,6 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "core.h"
#include <QAudioProbe>
#include <QDir>
#include <QCameraInfo>
#include <memory>
#include <utility>
......
......@@ -23,14 +23,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MEDIACAPTURE_H
#include <QAudioBuffer>
#include <QAudioEncoderSettings>
#include <QAudioRecorder>
#include <QCamera>
#include <QCameraInfo>
#include <QMediaRecorder>
#include <QStringList>
#include <QUrl>
#include <QVideoEncoderSettings>
#include <QTimer>
#include <QMutex>
#include <memory>
......
......@@ -16,10 +16,9 @@ the Free Software Foundation, either version 3 of the License, or
#include "undohelper.hpp"
#include <QMutex>
#include <QObject>
#include <QTabWidget>
#include <QUrl>
#include <memory>
#include <QPoint>
class Bin;
class DocUndoStack;
class EffectStackModel;
......
......@@ -36,7 +36,6 @@
#include <KColorScheme>
#include <KIO/DesktopExecParser>
#include <KMessageBox>
#include <KMimeTypeTrader>
#include <KNotification>
#include <KRun>
#include <kio_version.h>
......@@ -58,7 +57,6 @@
#include <QStandardPaths>
#include <QTemporaryFile>
#include <QThread>
#include <QTimer>
#include <QTreeWidgetItem>
#include <qglobal.h>
#include <qstring.h>
......
......@@ -32,7 +32,6 @@
#include <klocalizedstring.h>
#include <QColor>
#include <QDir>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
......
......@@ -56,7 +56,6 @@
#include <QDomImplementation>
#include <QFile>
#include <QFileDialog>
#include <QTimer>
#include <QUndoGroup>
#include <QUndoStack>
......
......@@ -28,7 +28,6 @@
#include <QDir>
#include <QList>
#include <QMap>
#include <QTimer>
#include <memory>
#include <qdom.h>
......
......@@ -27,8 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <mlt++/Mlt.h>
#include <QImage>
#include <QPainter>
#include <QPixmap>
// static
QPixmap KThumb::getImage(const QUrl &url, int width, int height)
{
......
......@@ -24,7 +24,6 @@
#include "assets/assetlist/model/assetfilter.hpp"
#include "effects/effectsrepository.hpp"
#include <QSortFilterProxyModel>
#include <memory>
/* @brief This class is used as a proxy model to filter the effect tree based on given criterion (name, type).
......
......@@ -26,7 +26,6 @@
#include <KLocalizedString>
#include <QDomDocument>
#include <QFile>
#include <QVector>
#include <array>
#include <vector>
......
......@@ -24,8 +24,6 @@
#include "assets/abstractassetsrepository.hpp"
#include "definitions.h"
#include <QObject>
#include <QSet>
#include <memory>
#include <mutex>
#include <unordered_map>
......
......@@ -36,9 +36,7 @@
#include <QLabel>
#include <QMenu>
#include <QMimeData>
#include <QPainter>
#include <QProgressBar>
#include <QPropertyAnimation>
#include <QSpinBox>
#include <QStandardPaths>
#include <QVBoxLayout>
......
......@@ -22,7 +22,6 @@
#define ABSTRACTCLIPJOB
#include <QObject>
#include <QProcess>
#include "definitions.h"
#include "undohelper.hpp"
......
......@@ -30,10 +30,9 @@
#include "lib/audio/audioStreamInfo.h"
#include "macros.hpp"
#include "utils/thumbnailcache.hpp"
#include <QDir>
#include <QFile>
#include <QScopedPointer>
#include <QTemporaryFile>
#include <QProcess>
#include <memory>
#include <mlt++/MltProducer.h>
......
......@@ -32,7 +32,7 @@ class ProjectClip;
namespace Mlt {
class Producer;
}
class QProcess;
class AudioThumbJob : public AbstractClipJob
{
Q_OBJECT
......
......@@ -34,7 +34,6 @@
#include <klocalizedstring.h>
#include <KIO/RenameDialog>
#include <KUrlRequester>
#include <KLineEdit>
#include "kdenlive_debug.h"
......
......@@ -22,7 +22,7 @@
#define CUTCLIPJOB
#include "abstractclipjob.h"
#include <QProcess>
/**
* @class CutClipJob
......
......@@ -26,8 +26,6 @@
#include "kdenlivesettings.h"
#include "macros.hpp"
#include <QProcess>
#include <QTemporaryFile>
#include <QThread>
#include <klocalizedstring.h>
......
......@@ -37,7 +37,6 @@
#include <QLabel>
#include <QDialog>
#include <QDoubleSpinBox>
#include <QScopedPointer>
#include <KIO/RenameDialog>
#include <KUrlRequester>
......
......@@ -28,7 +28,6 @@
#include "klocalizedstring.h"
#include "macros.hpp"
#include "utils/thumbnailcache.hpp"
#include <QDir>
#include <QPainter>
#include <QScopedPointer>
#include <mlt++/MltProducer.h>
......
......@@ -30,7 +30,6 @@
#include "macros.hpp"
#include <QProcess>
#include <QTemporaryFile>
#include <QThread>
#include <klocalizedstring.h>
......
......@@ -20,7 +20,6 @@
#ifndef KDENLIVECORE_EXPORT_H
#define KDENLIVECORE_EXPORT_H
#include <QtGlobal>
#ifndef KDENLIVECORE_EXPORT
#if defined(MAKE_KDENLIVECORE_LIB)
......
......@@ -89,7 +89,6 @@
#include <KShortcutsDialog>
#include <KStandardAction>
#include <KToolBar>
#include <KUrlRequesterDialog>
#include <KXMLGUIFactory>
#include <klocalizedstring.h>
#include <kns3/downloaddialog.h>
......@@ -103,7 +102,6 @@
#include <QMenuBar>
#include <QStatusBar>
#include <QStyleFactory>
#include <QTemporaryFile>
#include <QUndoGroup>
#include <KConfigGroup>
......
......@@ -34,7 +34,6 @@
#include <KColorSchemeManager>
#include <KSelectAction>
#include <KXmlGuiWindow>
#include <QTabWidget>
#include <kautosavefile.h>
#include <utility>
......
......@@ -28,7 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QDateTime>
#include <QDir>
#include <QMutex>
#include <QObject>
#include <QString>
#include <memory>
#include <mlt++/Mlt.h>
......
......@@ -59,7 +59,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QMenu>
#include <QMimeData>
#include <QMimeDatabase>
#include <QPixmap>
#include <QProcess>
#include <QScrollArea>
#include <QTextEdit>
......
......@@ -19,9 +19,7 @@
#ifndef GLWIDGET_H
#define GLWIDGET_H
#include <QApplication>
#include <QFont>
#include <QFontMetrics>
#include <QMutex>
#include <QOffscreenSurface>
#include <QOpenGLContext>
......
......@@ -43,7 +43,6 @@
#include "klocalizedstring.h"
#include <KDualAction>
#include <KFileWidget>
#include <KMessageBox>
#include <KMessageWidget>
#include <KRecentDirs>
#include <KSelectAction>
......@@ -53,7 +52,6 @@
#include "kdenlive_debug.h"
#include <QDesktopWidget>
#include <QDrag>
#include <QFileDialog>
#include <QMenu>
#include <QMimeData>
#include <QMouseEvent>
......
......@@ -27,9 +27,7 @@
#include "scopes/sharedframe.h"
#include "timecodedisplay.h"
#include <QDomElement>
#include <QElapsedTimer>
#include <QMutex>
#include <QToolBar>
#include <memory>
......
......@@ -24,6 +24,7 @@
#include "timecode.h"
#include <QDir>
#include <QMutex>
class KdenliveDoc;
class KDualAction;
......
......@@ -25,7 +25,6 @@
#include "profilemodel.hpp"
#include <KLocalizedString>
#include <KMessageBox>
#include <KMessageWidget>
#include <QDir>
#include <QStandardPaths>
#include <algorithm>
......
......@@ -29,7 +29,6 @@
#include <QDialog>
#include <QDomDocument>
#include <QFuture>
#include <QList>
#include <memory>
class KJob;
......
......@@ -45,6 +45,7 @@
#include <QFileDialog>
#include <QInputDialog>
#include <QTemporaryFile>
#include <QStyledItemDelegate>
class NoEditDelegate : public QStyledItemDelegate
{
......
......@@ -13,7 +13,6 @@
#include <QString>
#include <QWidget>
#include <QtCore>
#include "../abstractscopewidget.h"
......
......@@ -24,6 +24,7 @@
#include "klocalizedstring.h"
#include <QDockWidget>
#include <QSignalMapper>
//#define DEBUG_SM
#ifdef DEBUG_SM
......
......@@ -18,7 +18,7 @@
class QDockWidget;
class AbstractMonitor;
class QSignalMapper;
/**
\brief Manages communication between Scopes and Renderer
......
......@@ -39,6 +39,7 @@
#include <mlt++/MltProducer.h>
#include <mlt++/MltProfile.h>
#include <mlt++/MltTransition.h>
#include <QApplication>
static QStringList m_errorMessage;
......