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

Clean up includes

parent 7b043f79
......@@ -26,7 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QDomElement>
#include <QVariant>
#include <QPainter>
#include <QDebug>
AbstractProjectItem::AbstractProjectItem(PROJECTITEMTYPE type, const QString &id, AbstractProjectItem* parent) :
QObject()
......
......@@ -31,8 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <KLocalizedString>
#include <QIcon>
#include <QMimeData>
#include <QDebug>
#include <QStringListModel>
ProjectItemModel::ProjectItemModel(Bin *bin) :
......
......@@ -25,8 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "abstractprojectitem.h"
#include "definitions.h"
#include <QUrl>
#include <QMutex>
class ProjectFolder;
class ProjectClip;
......
......@@ -28,7 +28,6 @@
#include <fcntl.h>
#include <QDebug>
#include <linux/videodev2.h>
#include <sys/ioctl.h>
......
......@@ -41,7 +41,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QDir>
#include <QWindow>
#include <QUndoStack>
#include <QUndoCommand>
#include <QStandardPaths>
#include <QPushButton>
......
......@@ -23,7 +23,6 @@
#include "utils/KoIconUtils.h"
#include "klocalizedstring.h"
#include <QDebug>
#include <QVBoxLayout>
#include <QLineEdit>
#include <QPlainTextEdit>
......
......@@ -27,7 +27,6 @@
#include "klocalizedstring.h"
#include <QDir>
#include <QScriptEngine>
#include <QCloseEvent>
#include <QStandardPaths>
#include <QDebug>
......
......@@ -27,9 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "klocalizedstring.h"
#include <KComboBox>
#include <QDir>
#include <QLabel>
#include <QStandardPaths>
#include <QDebug>
TitleTemplateDialog::TitleTemplateDialog(const QString &folder, QWidget * parent) :
QDialog(parent)
......
......@@ -23,12 +23,8 @@
#include <QWizard>
#include <QVBoxLayout>
#include <QItemDelegate>
#include <QWizardPage>
#include <QPainter>
#include <QIcon>
#include <QDebug>
#include "ui_wizardstandard_ui.h"
#include "ui_wizardextra_ui.h"
......
......@@ -44,7 +44,6 @@
#include "timeline/transitionhandler.h"
#include <KMessageBox>
#include <KRecentDirs>
#include <klocalizedstring.h>
#include <KIO/CopyJob>
#include <KIO/JobUiDelegate>
......@@ -55,12 +54,10 @@
#include <QFile>
#include <QDebug>
#include <QFileDialog>
#include <QInputDialog>
#include <QDomImplementation>
#include <QUndoGroup>
#include <QTimer>
#include <QUndoStack>
#include <QTextEdit>
#include <mlt++/Mlt.h>
#include <KJobWidgets/KJobWidgets>
......
......@@ -30,7 +30,6 @@
#include <QWizard>
#include <QProcess>
#include <QDebug>
#include <QTemporaryFile>
typedef QMap <QString, QRect> stringRectMap;
......
......@@ -19,7 +19,6 @@
#include "dvdwizardchapters.h"
#include <QDebug>
DvdWizardChapters::DvdWizardChapters(MonitorManager *manager, DVDFORMAT format, QWidget *parent) :
......
......@@ -28,7 +28,6 @@
#include <QWizardPage>
#include <QDebug>
class DvdWizardChapters : public QWizardPage
{
......
......@@ -31,7 +31,6 @@
#include <QGraphicsRectItem>
#include <QDomElement>
#include <QDebug>
#include <KMessageWidget>
class DvdScene : public QGraphicsScene
......
......@@ -35,12 +35,11 @@
#include <QFileDialog>
#include <QHBoxLayout>
#include <QDomDocument>
#include <QMimeData>
#include <QTreeWidgetItem>
#include <QHeaderView>
#include <unistd.h>
#include <QStandardPaths>
#include <QProgressBar>
#include <QMimeData>
DvdTreeWidget::DvdTreeWidget(QWidget *parent) :
QTreeWidget(parent)
......
......@@ -23,7 +23,6 @@
#include "effectslistwidget.h"
#include "effectslistview.h"
#include <QDebug>
#include <klocalizedstring.h>
#include <QListWidget>
......
......@@ -19,7 +19,6 @@
#include "effectslist.h"
#include "kdenlivesettings.h"
#include <QDebug>
#include <klocalizedstring.h>
......
......@@ -27,7 +27,6 @@
#include <QDomDocument>
#include <QSize>
namespace Kdenlive {
enum EFFECTTYPE { simpleEffect, groupEffect };
......
......@@ -29,9 +29,8 @@
#include <QToolButton>
#include <QDragEnterEvent>
#include <QMimeData>
#include <QDomDocument>
#include <QDebug>
#include <QMimeData>
class EffectsList;
class EffectsListWidget;
......
......@@ -24,7 +24,6 @@
#include "kdenlivesettings.h"
#include "klocalizedstring.h"
#include <QDebug>
#include <QAction>
#include <QMenu>
#include <QMimeData>
......
......@@ -25,12 +25,11 @@
#include "mlt++/MltAnimation.h"
#include <QDebug>
#include <QFontDatabase>
#include <KColorScheme>
#include <QPainter>
#include <QMouseEvent>
#include <QStylePainter>
#include <QApplication>
const int margin = 5;
......
......@@ -32,13 +32,13 @@
#include <QLabel>
#include <QProgressBar>
#include <QWheelEvent>
#include <QMimeData>
#include <QFontDatabase>
#include <QFileDialog>
#include <QDebug>
#include <QStandardPaths>
#include <QPainter>
#include <QTimeLine>
#include <QMimeData>
#include <KRecentDirs>
#include <KComboBox>
......
......@@ -27,11 +27,11 @@
#include <QDragEnterEvent>
#include <QDropEvent>
#include <QMutexLocker>
#include <QMimeData>
#include <QDir>
#include <QDebug>
#include <QFontDatabase>
#include <QStandardPaths>
#include <QMimeData>
#include <klocalizedstring.h>
#include <KMessageBox>
......
......@@ -31,13 +31,10 @@
#include <QApplication>
#include <QMenu>
#include <QAction>
#include <QStyle>
#include <QDebug>
#include <QIcon>
#include <klocalizedstring.h>
#include <QFontDatabase>
#include <QStyle>
DragValue::DragValue(const QString &label, double defaultValue, int decimals, double min, double max, int id, const QString &suffix, bool showSlider, QWidget* parent) :
QWidget(parent),
......
......@@ -22,7 +22,6 @@
#include "effectslist/effectslist.h"
#include "kdenlivesettings.h"
#include <QDebug>
#include <KComboBox>
#include <QVBoxLayout>
......
......@@ -29,11 +29,11 @@
#include <QGraphicsView>
#include <QCursor>
#include <QTextCursor>
#include <QTextDocument>
#include <QList>
#include <QKeyEvent>
#include <QApplication>
#include <QTextBlock>
#include <QTextDocument>
MyQGraphicsEffect::MyQGraphicsEffect(QObject *parent) :
QGraphicsEffect(parent)
......
......@@ -23,13 +23,12 @@
#include "kdenlivesettings.h"
#include "definitions.h"
#include <QDebug>
#include <QFontDatabase>
#include <KColorScheme>
#include <QMouseEvent>
#include <QStylePainter>
#include <QApplication>
#include <QPainter>
const int margin = 5;
......
......@@ -20,7 +20,6 @@
#include "timecodedisplay.h"
#include "kdenlivesettings.h"
#include <QDebug>
#include <QLabel>
#include <QSlider>
......
......@@ -29,13 +29,11 @@
#include <QStandardPaths>
#include <QComboBox>
#include <QDir>
#include <QInputDialog>
#include <QCheckBox>
#include <QDialogButtonBox>
#include <QDragEnterEvent>
#include <QMimeData>
#include <QClipboard>
#include <QLineEdit>
#include <QDialog>
#include <KDualAction>
#include <KConfig>
#include <KConfigGroup>
......
......@@ -18,7 +18,8 @@
#include "cubicbezierspline.h"
#include <QStringList>
#include <QDebug>
#include <QLocale>
#include <QVector>
/** @brief For sorting a Bezier spline. Whether a is before b. */
static bool pointLessThan(const BPoint &a, const BPoint &b)
......
......@@ -23,9 +23,9 @@
#include <QLabel>
#include <QHBoxLayout>
#include <QTextStream>
#include <KColorButton>
#include <QDebug>
static QColor stringToColor(QString strColor)
{
......
......@@ -29,9 +29,6 @@
#include <QFrame>
#include <QApplication>
#include <QTimer>
#include <QIcon>
#include <QDebug>
#include <QWindow>
#include <klocalizedstring.h>
#ifdef Q_WS_X11
......
......@@ -26,7 +26,6 @@
#include <QGraphicsView>
#include "klocalizedstring.h"
#include <QIcon>
inline int lerp( const int a, const int b, double t )
{
......
......@@ -24,7 +24,6 @@
#include <QGridLayout>
#include <QRadioButton>
#include <QDebug>
DoubleParameterWidget::DoubleParameterWidget(const QString &name, double value, double min, double max, double defaultValue, const QString &comment, int id, const QString &suffix, int decimals, bool showRadiobutton, QWidget *parent)
......
......@@ -21,12 +21,10 @@
#include "utils/KoIconUtils.h"
#include <QDebug>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QDialogButtonBox>
#include <QLabel>
#include <QSlider>
#include <QComboBox>
#include <QCheckBox>
#include <QSpinBox>
......
......@@ -23,7 +23,6 @@
#define KEYFRAMEIMPORT_H
#include <QDialog>
#include <QPixmap>
#include <QLabel>
#include "definitions.h"
......
......@@ -35,7 +35,6 @@
#include <QPen>
#include <QEvent>
#include <QRect>
#include <QFont>
#include <QMouseEvent>
#include <QKeyEvent>
#include <QPaintEvent>
......
......@@ -23,10 +23,7 @@
#include "effectstack/widgets/colorwheel.h"
#include "utils/flowlayout.h"
#include <QLabel>
#include <QHBoxLayout>
#include <QDebug>
#include <KLocalizedString>
static const double GAMMA_FACTOR = 2.0;
......
......@@ -22,9 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "effectstack/widgets/selectivecolor.h"
#include "utils/KoIconUtils.h"
#include <QLabel>
#include <QComboBox>
#include <QDebug>
#include <KLocalizedString>
SelectiveColor::SelectiveColor(const QDomElement &effect, QWidget* parent) :
......
......@@ -25,9 +25,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "ui_selectivecolor_ui.h"
#include <QWidget>
#include <QDomNodeList>
#include <QLocale>
#include <QDomElement>
/**
* @class SelectiveColor
......
......@@ -27,14 +27,12 @@
#include "kdenlivesettings.h"
#include <QVBoxLayout>
#include <QDateTime>
#include <QStandardPaths>
#include <QTreeWidgetItem>
#include <QInputDialog>
#include <QAction>
#include <QMimeData>
#include <QDropEvent>
#include <QtConcurrent>
#include <QToolBar>
#include <QProgressBar>
......
......@@ -99,8 +99,6 @@
#include <QStatusBar>
#include <QTemporaryFile>
#include <QMenu>
#include <QDesktopWidget>
#include <QBitmap>
#include <QUndoGroup>
#include <QFileDialog>
#include <QStyleFactory>
......@@ -112,7 +110,6 @@
#include <QDialogButtonBox>
#include <QPushButton>
#include <QVBoxLayout>
#include <QtGlobal>
#include <QScreen>
static const char version[] = KDENLIVE_VERSION;
......
......@@ -22,7 +22,6 @@
#include "clipcontroller.h"
#include "kdenlivesettings.h"
#include <QFileInfo>
static const char* kPlaylistTrackId = "main bin";
......
......@@ -27,8 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <mlt++/Mlt.h>
#include <QString>
#include <QObject>
#include <QUrl>
class ClipController;
class QMimeData;
......
......@@ -24,11 +24,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "dialogs/profilesdialog.h"
#include "effectstack/widgets/animationwidget.h"
#include <QUrl>
#include <QDebug>
#include <QPixmap>
#include <QScriptEngine>
#include <KLocalizedString>
EffectInfo::EffectInfo() {isCollapsed = false; groupIndex = -1; groupIsCollapsed = false;}
......
......@@ -26,8 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <mlt++/Mlt.h>
#include <QString>
#include <QObject>
#include <QUrl>
/**)
......
......@@ -31,7 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "timeline/clip.h"
#include <QtConcurrent>
#include <QPainter>
ProducerQueue::ProducerQueue(BinController *controller) : QObject(controller)
......
......@@ -25,10 +25,8 @@
#include <stdint.h>
#include <QObject>
#include <QVector>
#include <QWidget>
#include <QImage>
#include <QFrame>
class MonitorManager;
......
......@@ -20,11 +20,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <QtWidgets>
#include <QOpenGLFunctions_3_2_Core>
#include <QUrl>
#include <QtQml>
#include <QQuickItem>
#include <QApplication>
#include <QPainter>
#include <mlt++/Mlt.h>
#include "glwidget.h"
......
......@@ -53,7 +53,6 @@
#include <QToolButton>
#include <QToolBar>
#include <QDesktopWidget>
#include <QLabel>
#include <QVBoxLayout>
#include <QSlider>
#include <QDrag>
......
......@@ -28,12 +28,8 @@
#include "scopes/sharedframe.h"
#include "effectslist/effectslist.h"
#include <QLabel>
#include <QDomElement>
#include <QToolBar>
#include <QWindow>
#include <QIcon>
#include <QProcess>
#include <QElapsedTimer>
class SmallRuler;
......
......@@ -33,7 +33,6 @@
#include <KDualAction>
#include <QObject>
#include <QTimer>
#include <QDebug>
MonitorManager::MonitorManager(QObject *parent) :
......
......@@ -25,6 +25,7 @@
#include "recmonitor.h"
#include "timecode.h"
#include <QDir>
class KdenliveDoc;
class BinController;
......
......@@ -30,12 +30,10 @@
#include <KMessageBox>
#include "klocalizedstring.h"
#include <QDebug>
#include <QComboBox>
#include <QToolBar>
#include <QDesktopWidget>
#include <QStandardPaths>
#include <QIcon>
#include <QDir>
#include <QFile>
......
......@@ -27,10 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QPainter>
#include <QPaintEvent>
#include <QStylePainter>
#include <QVBoxLayout>
#include <QFont>
#include <QDebug>
#include <math.h>
const double log_factor = 1.0 / log10(1.0/127);
......
......@@ -21,7 +21,6 @@
#include <QWidget>
#include <QString>
#include <QDebug>
#include <QThread>
#include <QFuture>
#include <QMutex>
......
......@@ -19,7 +19,6 @@
#ifndef SHAREDFRAME_H
#define SHAREDFRAME_H
#include <QObject>
#include <QExplicitlySharedDataPointer>
#include <mlt++/MltFrame.h>
#include <stdint.h>
......
......@@ -22,7 +22,6 @@
#include "kdenlivesettings.h"
#include <QDebug>
#include <KColorScheme>
#include "klocalizedstring.h"
......
......@@ -37,7 +37,6 @@
#include <mlt++/Mlt.h>
#include <KMessageBox>
#include <KIO/JobUiDelegate>
#include <KIO/MkdirJob>
#include <solid/device.h>
......@@ -46,16 +45,11 @@
#include <solid/storagevolume.h>
#include <klocalizedstring.h>
#include <KJobWidgets/KJobWidgets>
#include <KRecentDirs>
#include <KFileItem>
#include <QGraphicsItemGroup>
#include <QtConcurrent>
#include <QApplication>
#include <QMimeType>
#include <QCheckBox>
#include <QHBoxLayout>
#include <QFileDialog>
ClipManager::ClipManager(KdenliveDoc *doc) :
QObject(),
......