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

Clean headers in Utils.



Forward-declare QGraphicsOpacityEffect in DetailsButton,
QProcessEnvironment in Environment, QFileInfo in fileutils,
QUrl in IWelcomePage, FancyLineEdit in PathChooser and
remove unneeded headers.

Change-Id: I7d5f273530dd2059bbdaf0899f0a3bc7e49e8482
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 3824d901
......@@ -29,12 +29,7 @@
#include "annotateditemdelegate.h"
#include <QSize>
#include <QModelIndex>
#include <QStandardItemModel>
#include <QPainter>
#include <QStyle>
#include <QStyleOptionViewItemV4>
#include <QApplication>
using namespace Utils;
......
......@@ -32,7 +32,6 @@
#include "utils_global.h"
#include <QString>
#include <QStyledItemDelegate>
namespace Utils {
......
......@@ -30,8 +30,6 @@
#ifndef BASEVALIDATINGLINEEDIT_H
#define BASEVALIDATINGLINEEDIT_H
#include "utils_global.h"
#include "fancylineedit.h"
namespace Utils {
......
......@@ -28,20 +28,11 @@
****************************************************************************/
#include "buildablehelperlibrary.h"
#include "hostosinfo.h"
#include "synchronousprocess.h"
#include <QFileInfo>
#include <QCoreApplication>
#include <QHash>
#include <QProcess>
#include <QDir>
#include <QDateTime>
#include <utils/environment.h>
#include <utils/fileutils.h>
#include <utils/hostosinfo.h>
#include <utils/synchronousprocess.h>
#include <QDesktopServices>
#include <QDebug>
namespace Utils {
......
......@@ -30,18 +30,13 @@
#ifndef BUILDABLEHELPERLIBRARY_H
#define BUILDABLEHELPERLIBRARY_H
#include "utils_global.h"
#include <utils/environment.h>
#include <utils/fileutils.h>
#include <QString>
#include "environment.h"
#include "fileutils.h"
QT_FORWARD_DECLARE_CLASS(QFileInfo)
namespace Utils {
class Environment;
class QTCREATOR_UTILS_EXPORT BuildableHelperLibrary
{
public:
......
......@@ -29,22 +29,11 @@
#include "checkablemessagebox.h"
#include <QDebug>
#include <QVariant>
#include <QPushButton>
#include <QAction>
#include <QApplication>
#include <QButtonGroup>
#include <QCheckBox>
#include <QDialog>
#include <QDialogButtonBox>
#include <QHBoxLayout>
#include <QHeaderView>
#include <QLabel>
#include <QSpacerItem>
#include <QVBoxLayout>
#include <QDebug>
/*!
\class Utils::CheckableMessageBox
......
......@@ -34,7 +34,6 @@
#include <QDialogButtonBox>
#include <QMessageBox>
#include <QDialog>
namespace Utils {
......
......@@ -30,7 +30,6 @@
#ifndef CLASSNAMEVALIDATINGLINEEDIT_H
#define CLASSNAMEVALIDATINGLINEEDIT_H
#include "utils_global.h"
#include "basevalidatinglineedit.h"
namespace Utils {
......
......@@ -31,7 +31,6 @@
#define CODEGENERATION_H
#include "utils_global.h"
#include <QString>
QT_BEGIN_NAMESPACE
class QTextStream;
......
......@@ -29,8 +29,6 @@
#include "consoleprocess_p.h"
#include <utils/hostosinfo.h>
#include <QSettings>
namespace Utils {
......
......@@ -32,11 +32,6 @@
#include "utils_global.h"
#include "environment.h"
#include <QObject>
#include <QString>
#include <QStringList>
#include <QProcess>
QT_BEGIN_NAMESPACE
......@@ -44,6 +39,7 @@ class QSettings;
QT_END_NAMESPACE
namespace Utils {
class Environment;
struct ConsoleProcessPrivate;
class QTCREATOR_UTILS_EXPORT ConsoleProcess : public QObject
......
......@@ -31,6 +31,7 @@
#define CONSOLEPROCESS_P_H
#include "consoleprocess.h"
#include "environment.h"
#include <QTemporaryFile>
......
......@@ -29,14 +29,11 @@
#include "consoleprocess_p.h"
#include "environment.h"
#include "qtcprocess.h"
#include <utils/hostosinfo.h>
#include <QCoreApplication>
#include <QDir>
#include <QSettings>
#include <QTimer>
#include <sys/stat.h>
......
......@@ -31,14 +31,10 @@
#include "qtcassert.h"
#include "stylehelper.h"
#include <QList>
#include <QHBoxLayout>
#include <QPushButton>
#include <QMenu>
#include <QStyle>
#include <QResizeEvent>
#include <QPainter>
#include <QImage>
namespace Utils {
......
......@@ -30,8 +30,8 @@
#include "detailsbutton.h"
#include <utils/hostosinfo.h>
#include <utils/stylehelper.h>
#include <QGraphicsOpacityEffect>
#include <QPropertyAnimation>
#include <QPaintEvent>
#include <QPainter>
......
......@@ -33,9 +33,6 @@
#include "utils_global.h"
#include <QAbstractButton>
#include <QPixmap>
#include <QGraphicsOpacityEffect>
QT_FORWARD_DECLARE_CLASS(QGraphicsOpacityEffect)
......
......@@ -31,9 +31,6 @@
#include "detailsbutton.h"
#include "hostosinfo.h"
#include <QStack>
#include <QPropertyAnimation>
#include <QGridLayout>
#include <QLabel>
#include <QCheckBox>
......
......@@ -30,9 +30,7 @@
#include "elfreader.h"
#include "qtcassert.h"
#include <QFile>
#include <QDir>
#include <QLibrary>
#include <QDebug>
namespace Utils {
......
......@@ -33,7 +33,6 @@
#include "utils_global.h"
#include <qendian.h>
#include <qstring.h>
#include <qvector.h>
#include <qcoreapplication.h>
......
......@@ -32,9 +32,7 @@
#include "hostosinfo.h"
#include <QDir>
#include <QProcess>
#include <QProcessEnvironment>
#include <QString>
#include <QCoreApplication>
class SystemEnvironment : public Utils::Environment
......
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