Commit edb48935 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Header cleanup in src, specify module name.

parent 2a10a810
......@@ -38,8 +38,8 @@
#include <Literals.h>
#include <Symbols.h>
#include <QFile>
#include <QtDebug>
#include <QtCore/QFile>
#include <QtCore/QtDebug>
using namespace CPlusPlus;
......
......@@ -32,8 +32,8 @@
**************************************************************************/
#include "colorbox.h"
#include <QPainter>
#include <QMouseEvent>
#include <QtGui/QPainter>
#include <QtGui/QMouseEvent>
static inline QString properName(const QColor &color)
{
......
......@@ -32,7 +32,7 @@
**************************************************************************/
#include "colorbutton.h"
#include <QPainter>
#include <QtGui/QPainter>
static inline QPixmap tilePixMap(int size)
{
......
......@@ -37,7 +37,7 @@
#include <qmljs/qmljspropertyreader.h>
#include <qmljs/qmljscheck.h>
#include <customcolordialog.h>
#include <QDebug>
#include <QtCore/QDebug>
namespace QmlEditorWidgets {
......
......@@ -32,18 +32,18 @@
**************************************************************************/
#include "customcolordialog.h"
#include <QHBoxLayout>
#include <QLabel>
#include <QPainter>
#include <QDoubleSpinBox>
#include <QGridLayout>
#include <QPushButton>
#include <QDialogButtonBox>
#include <QGraphicsEffect>
#include "huecontrol.h"
#include "colorbox.h"
#include <QtGui/QHBoxLayout>
#include <QtGui/QLabel>
#include <QtGui/QPainter>
#include <QtGui/QDoubleSpinBox>
#include <QtGui/QGridLayout>
#include <QtGui/QPushButton>
#include <QtGui/QDialogButtonBox>
#include <QtGui/QGraphicsEffect>
namespace QmlEditorWidgets {
CustomColorDialog::CustomColorDialog(QWidget *parent) : QFrame(parent )
......
......@@ -35,10 +35,10 @@
#include "ui_easingcontextpane.h"
#include <qmljs/qmljspropertyreader.h>
#include <QGraphicsPixmapItem>
#include <QGraphicsScene>
#include <QPropertyAnimation>
#include <QSequentialAnimationGroup>
#include <QtGui/QGraphicsPixmapItem>
#include <QtGui/QGraphicsScene>
#include <QtCore/QPropertyAnimation>
#include <QtCore/QSequentialAnimationGroup>
namespace QmlEditorWidgets {
......
......@@ -34,13 +34,12 @@
#ifndef EASINGCONTEXTPANE_H
#define EASINGCONTEXTPANE_H
#include <QWidget>
#include <QVariant>
#include "easinggraph.h"
#include <QtGui/QWidget>
QT_BEGIN_NAMESPACE
class QVariant;
namespace Ui {
class EasingContextPane;
}
......
......@@ -33,69 +33,66 @@
#include "easinggraph.h"
#include <QPainter>
#include <QStyleOptionGraphicsItem>
#include <QtGui/QPainter>
#include <QtGui/QStyleOptionGraphicsItem>
#include <math.h>
QT_BEGIN_NAMESPACE
EasingGraph::EasingGraph(QWidget *parent):QWidget(parent)
EasingGraph::EasingGraph(QWidget *parent):QWidget(parent),
m_color(Qt::magenta), m_zeroColor(Qt::gray),m_duration(0),
m_easingExtremes(QLatin1String("In"))
{
// setFlag(QGraphicsItem::ItemHasNoContents, false);
// populate the hash
m_availableNames["Linear"]=QEasingCurve::Linear;
m_availableNames["InQuad"]=QEasingCurve::InQuad;
m_availableNames["OutQuad"]=QEasingCurve::OutQuad;
m_availableNames["InOutQuad"]=QEasingCurve::InOutQuad;
m_availableNames["OutInQuad"]=QEasingCurve::OutInQuad;
m_availableNames["InCubic"]=QEasingCurve::InCubic;
m_availableNames["OutCubic"]=QEasingCurve::OutCubic;
m_availableNames["InOutCubic"]=QEasingCurve::InOutCubic;
m_availableNames["OutInCubic"]=QEasingCurve::OutInCubic;
m_availableNames["InQuart"]=QEasingCurve::InQuart;
m_availableNames["OutQuart"]=QEasingCurve::OutQuart;
m_availableNames["InOutQuart"]=QEasingCurve::InOutQuart;
m_availableNames["OutInQuart"]=QEasingCurve::OutInQuart;
m_availableNames["InQuint"]=QEasingCurve::InQuint;
m_availableNames["OutQuint"]=QEasingCurve::OutQuint;
m_availableNames["InOutQuint"]=QEasingCurve::InOutQuint;
m_availableNames["OutInQuint"]=QEasingCurve::OutInQuint;
m_availableNames["InSine"]=QEasingCurve::InSine;
m_availableNames["OutSine"]=QEasingCurve::OutSine;
m_availableNames["InOutSine"]=QEasingCurve::InOutSine;
m_availableNames["OutInSine"]=QEasingCurve::OutInSine;
m_availableNames["InExpo"]=QEasingCurve::InExpo;
m_availableNames["OutExpo"]=QEasingCurve::OutExpo;
m_availableNames["InOutExpo"]=QEasingCurve::InOutExpo;
m_availableNames["OutInExpo"]=QEasingCurve::OutInExpo;
m_availableNames["InCirc"]=QEasingCurve::InCirc;
m_availableNames["OutCirc"]=QEasingCurve::OutCirc;
m_availableNames["InOutCirc"]=QEasingCurve::InOutCirc;
m_availableNames["OutInCirc"]=QEasingCurve::OutInCirc;
m_availableNames["InElastic"]=QEasingCurve::InElastic;
m_availableNames["OutElastic"]=QEasingCurve::OutElastic;
m_availableNames["InOutElastic"]=QEasingCurve::InOutElastic;
m_availableNames["OutInElastic"]=QEasingCurve::OutInElastic;
m_availableNames["InBack"]=QEasingCurve::InBack;
m_availableNames["OutBack"]=QEasingCurve::OutBack;
m_availableNames["InOutBack"]=QEasingCurve::InOutBack;
m_availableNames["OutInBack"]=QEasingCurve::OutInBack;
m_availableNames["InBounce"]=QEasingCurve::InBounce;
m_availableNames["OutBounce"]=QEasingCurve::OutBounce;
m_availableNames["InOutBounce"]=QEasingCurve::InOutBounce;
m_availableNames["OutInBounce"]=QEasingCurve::OutInBounce;
m_availableNames["InCurve"]=QEasingCurve::InCurve;
m_availableNames["OutCurve"]=QEasingCurve::OutCurve;
m_availableNames["SineCurve"]=QEasingCurve::SineCurve;
m_availableNames["CosineCurve"]=QEasingCurve::CosineCurve;
m_color = Qt::magenta;
m_zeroColor = Qt::gray;
m_easingExtremes = "In";
m_availableNames.insert(QLatin1String("Linear"), QEasingCurve::Linear);
m_availableNames.insert(QLatin1String("InQuad"), QEasingCurve::InQuad);
m_availableNames.insert(QLatin1String("OutQuad"), QEasingCurve::OutQuad);
m_availableNames.insert(QLatin1String("InOutQuad"), QEasingCurve::InOutQuad);
m_availableNames.insert(QLatin1String("OutInQuad"), QEasingCurve::OutInQuad);
m_availableNames.insert(QLatin1String("InCubic"), QEasingCurve::InCubic);
m_availableNames.insert(QLatin1String("OutCubic"), QEasingCurve::OutCubic);
m_availableNames.insert(QLatin1String("InOutCubic"), QEasingCurve::InOutCubic);
m_availableNames.insert(QLatin1String("OutInCubic"), QEasingCurve::OutInCubic);
m_availableNames.insert(QLatin1String("InQuart"), QEasingCurve::InQuart);
m_availableNames.insert(QLatin1String("OutQuart"), QEasingCurve::OutQuart);
m_availableNames.insert(QLatin1String("InOutQuart"), QEasingCurve::InOutQuart);
m_availableNames.insert(QLatin1String("OutInQuart"), QEasingCurve::OutInQuart);
m_availableNames.insert(QLatin1String("InQuint"), QEasingCurve::InQuint);
m_availableNames.insert(QLatin1String("OutQuint"), QEasingCurve::OutQuint);
m_availableNames.insert(QLatin1String("InOutQuint"), QEasingCurve::InOutQuint);
m_availableNames.insert(QLatin1String("OutInQuint"), QEasingCurve::OutInQuint);
m_availableNames.insert(QLatin1String("InSine"), QEasingCurve::InSine);
m_availableNames.insert(QLatin1String("OutSine"), QEasingCurve::OutSine);
m_availableNames.insert(QLatin1String("InOutSine"), QEasingCurve::InOutSine);
m_availableNames.insert(QLatin1String("OutInSine"), QEasingCurve::OutInSine);
m_availableNames.insert(QLatin1String("InExpo"), QEasingCurve::InExpo);
m_availableNames.insert(QLatin1String("OutExpo"), QEasingCurve::OutExpo);
m_availableNames.insert(QLatin1String("InOutExpo"), QEasingCurve::InOutExpo);
m_availableNames.insert(QLatin1String("OutInExpo"), QEasingCurve::OutInExpo);
m_availableNames.insert(QLatin1String("InCirc"), QEasingCurve::InCirc);
m_availableNames.insert(QLatin1String("OutCirc"), QEasingCurve::OutCirc);
m_availableNames.insert(QLatin1String("InOutCirc"), QEasingCurve::InOutCirc);
m_availableNames.insert(QLatin1String("OutInCirc"), QEasingCurve::OutInCirc);
m_availableNames.insert(QLatin1String("InElastic"), QEasingCurve::InElastic);
m_availableNames.insert(QLatin1String("OutElastic"), QEasingCurve::OutElastic);
m_availableNames.insert(QLatin1String("InOutElastic"), QEasingCurve::InOutElastic);
m_availableNames.insert(QLatin1String("OutInElastic"), QEasingCurve::OutInElastic);
m_availableNames.insert(QLatin1String("InBack"), QEasingCurve::InBack);
m_availableNames.insert(QLatin1String("OutBack"), QEasingCurve::OutBack);
m_availableNames.insert(QLatin1String("InOutBack"), QEasingCurve::InOutBack);
m_availableNames.insert(QLatin1String("OutInBack"), QEasingCurve::OutInBack);
m_availableNames.insert(QLatin1String("InBounce"), QEasingCurve::InBounce);
m_availableNames.insert(QLatin1String("OutBounce"), QEasingCurve::OutBounce);
m_availableNames.insert(QLatin1String("InOutBounce"), QEasingCurve::InOutBounce);
m_availableNames.insert(QLatin1String("OutInBounce"), QEasingCurve::OutInBounce);
m_availableNames.insert(QLatin1String("InCurve"), QEasingCurve::InCurve);
m_availableNames.insert(QLatin1String("OutCurve"), QEasingCurve::OutCurve);
m_availableNames.insert(QLatin1String("SineCurve"), QEasingCurve::SineCurve);
m_availableNames.insert(QLatin1String("CosineCurve"), QEasingCurve::CosineCurve);
}
EasingGraph::~EasingGraph()
{
}
......
......@@ -34,10 +34,9 @@
#ifndef EASINGGRAPH_H
#define EASINGGRAPH_H
//#include <QtDeclarative/qdeclarativeitem.h>
#include <QWidget>
#include <QEasingCurve>
#include <QHash>
#include <QtGui/QWidget>
#include <QtCore/QEasingCurve>
#include <QtCore/QHash>
QT_BEGIN_HEADER
......
......@@ -33,8 +33,8 @@
#include "fontsizespinbox.h"
#include <QLineEdit>
#include <QRegExpValidator>
#include <QtGui/QLineEdit>
#include <QtGui/QRegExpValidator>
namespace QmlEditorWidgets {
......
......@@ -32,8 +32,8 @@
**************************************************************************/
#include "gradientline.h"
#include <QPainter>
#include <QMouseEvent>
#include <QtGui/QPainter>
#include <QtGui/QMouseEvent>
static inline QPixmap tilePixMap(int size)
{
......
......@@ -32,8 +32,8 @@
**************************************************************************/
#include "huecontrol.h"
#include <QPainter>
#include <QMouseEvent>
#include <QtGui/QPainter>
#include <QtGui/QMouseEvent>
static inline int clamp(int x, int lower, int upper)
{
......
......@@ -45,7 +45,7 @@
#include "qmljsnodepool_p.h"
#include <qnumeric.h>
#include <QHash>
#include <QtCore/QHash>
QT_QML_BEGIN_NAMESPACE
......
......@@ -39,20 +39,18 @@
**
****************************************************************************/
#include <QtCore/QtDebug>
#include <QtGui/QApplication>
#include <string.h>
#include "qmljsparser_p.h"
#include "qmljsengine_p.h"
#include "qmljslexer_p.h"
#include "qmljsast_p.h"
#include "qmljsnodepool_p.h"
#include <QtCore/QtDebug>
#include <QtCore/QVarLengthArray>
#include <QtGui/QApplication>
#include "qmljsparser_p.h"
#include <QVarLengthArray>
#include <string.h>
//
// This file is automatically generated from qmljs.g.
......
......@@ -33,7 +33,7 @@
#include <qmljs/qmljsscanner.h>
#include <QTextCharFormat>
#include <QtGui/QTextCharFormat>
using namespace QmlJS;
......
......@@ -41,7 +41,7 @@
#include "qpacketprotocol_p.h"
#include <QBuffer>
#include <QtCore/QBuffer>
namespace QmlJsDebugClient {
......
......@@ -44,7 +44,7 @@
#include <utils/synchronousprocess.h>
#include <QtGui/QDesktopServices>
#include <QDebug>
#include <QtCore/QDebug>
namespace Utils {
......
......@@ -37,7 +37,7 @@
#include "utils_global.h"
#include <QtGui/QWidget>
#include <QVariant>
#include <QtCore/QVariant>
QT_FORWARD_DECLARE_CLASS(QResizeEvent)
......
......@@ -34,7 +34,7 @@
#include "fileinprojectfinder.h"
#include <utils/qtcassert.h>
#include <QFileInfo>
#include <QtCore/QFileInfo>
namespace Utils {
......
......@@ -32,15 +32,16 @@
**************************************************************************/
#include "historycompleter.h"
#include <QLineEdit>
#include <QCompleter>
#include <QAbstractListModel>
#include <QSettings>
#include <QKeyEvent>
#include <QItemDelegate>
#include <QListView>
#include <QPainter>
#include <QStyle>
#include <QtCore/QAbstractListModel>
#include <QtCore/QSettings>
#include <QtGui/QLineEdit>
#include <QtGui/QKeyEvent>
#include <QtGui/QItemDelegate>
#include <QtGui/QListView>
#include <QtGui/QPainter>
#include <QtGui/QStyle>
namespace Utils {
......
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