Remove useless #includes
This commit is contained in:
parent
3044bb6690
commit
e71ecfec34
@ -3,7 +3,6 @@
|
|||||||
#include "cropscene.hpp"
|
#include "cropscene.hpp"
|
||||||
#include "cropview.hpp"
|
#include "cropview.hpp"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QDebug>
|
|
||||||
#include <QGraphicsPixmapItem>
|
#include <QGraphicsPixmapItem>
|
||||||
#include <QGraphicsView>
|
#include <QGraphicsView>
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include "cropscene.hpp"
|
#include "cropscene.hpp"
|
||||||
#include <QColorDialog>
|
#include <QColorDialog>
|
||||||
#include <QDebug>
|
|
||||||
#include <QFontDialog>
|
#include <QFontDialog>
|
||||||
#include <QGraphicsPolygonItem>
|
#include <QGraphicsPolygonItem>
|
||||||
#include <QGraphicsSceneContextMenuEvent>
|
#include <QGraphicsSceneContextMenuEvent>
|
||||||
@ -108,7 +107,8 @@ void CropScene::mouseMoveEvent(QGraphicsSceneMouseEvent *e) {
|
|||||||
initPos = p;
|
initPos = p;
|
||||||
rect->setRect(p.x(), p.y(), 1, 1);
|
rect->setRect(p.x(), p.y(), 1, 1);
|
||||||
} else {
|
} else {
|
||||||
rect->setRect(QRect(qMin(initPos.x(), p.x()), qMin(initPos.y(), p.y()), qAbs(initPos.x() - p.x()), qAbs(initPos.y() - p.y())));
|
rect->setRect(QRect(qMin(initPos.x(), p.x()), qMin(initPos.y(), p.y()), qAbs(initPos.x() - p.x()),
|
||||||
|
qAbs(initPos.y() - p.y())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
QPolygonF poly;
|
QPolygonF poly;
|
||||||
@ -134,7 +134,6 @@ void CropScene::mouseMoveEvent(QGraphicsSceneMouseEvent *e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CropScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *e) {
|
void CropScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *e) {
|
||||||
qDebug() << "release";
|
|
||||||
if (drawingSelection) {
|
if (drawingSelection) {
|
||||||
drawingSelection->mouseDragEndEvent(e, this);
|
drawingSelection->mouseDragEndEvent(e, this);
|
||||||
delete drawingSelection;
|
delete drawingSelection;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include "bluritem.hpp"
|
#include "bluritem.hpp"
|
||||||
|
|
||||||
#include <QDebug>
|
|
||||||
#include <cropeditor/settings/blurdialog.hpp>
|
#include <cropeditor/settings/blurdialog.hpp>
|
||||||
|
|
||||||
bool BlurItem::init(CropScene *) {
|
bool BlurItem::init(CropScene *) {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include "hotkeying.hpp"
|
#include "hotkeying.hpp"
|
||||||
|
|
||||||
#include <QDebug>
|
|
||||||
#include <QHotkey>
|
#include <QHotkey>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <settings.hpp>
|
#include <settings.hpp>
|
||||||
|
1
main.cpp
1
main.cpp
@ -2,7 +2,6 @@
|
|||||||
#include "screenshotutil.hpp"
|
#include "screenshotutil.hpp"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
#include <QDebug>
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#include <formatter.hpp>
|
#include <formatter.hpp>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QDebug>
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QJsonDocument>
|
#include <QJsonDocument>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QDebug>
|
|
||||||
#include <QMimeData>
|
#include <QMimeData>
|
||||||
#include <formats.hpp>
|
#include <formats.hpp>
|
||||||
#include <notifications.hpp>
|
#include <notifications.hpp>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user