Cleanup of includes in GUI (Removed redundant includes, use forward declarations) - Build speedup by 3% in VS10 (LINKCORE=yes, Qt 4.8.3)
This commit is contained in:
parent
5d796a5936
commit
b1a768e5ec
|
@ -20,7 +20,6 @@
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QDebug>
|
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include "applicationdialog.h"
|
#include "applicationdialog.h"
|
||||||
#include "application.h"
|
#include "application.h"
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#define APPLICATIONDIALOG_H
|
#define APPLICATIONDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QLineEdit>
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include "application.h"
|
#include "application.h"
|
||||||
#include "ui_application.h"
|
#include "ui_application.h"
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QStringList>
|
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#define APPLICATIONLIST_H
|
#define APPLICATIONLIST_H
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QSettings>
|
|
||||||
#include "application.h"
|
#include "application.h"
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "common.h"
|
|
||||||
#include "checkstatistics.h"
|
#include "checkstatistics.h"
|
||||||
|
|
||||||
CheckStatistics::CheckStatistics(QObject *parent)
|
CheckStatistics::CheckStatistics(QObject *parent)
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#define CHECKSTATISTICS_H
|
#define CHECKSTATISTICS_H
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include "common.h"
|
|
||||||
#include "showtypes.h"
|
#include "showtypes.h"
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
|
|
|
@ -22,9 +22,10 @@
|
||||||
|
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
#include "cppcheck.h"
|
#include "cppcheck.h"
|
||||||
#include "settings.h"
|
|
||||||
#include "threadresult.h"
|
#include "threadresult.h"
|
||||||
|
|
||||||
|
class Settings;
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFile>
|
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "csvreport.h"
|
#include "csvreport.h"
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
|
||||||
#include <QFile>
|
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QDebug>
|
|
||||||
#include "filelist.h"
|
#include "filelist.h"
|
||||||
|
|
||||||
QStringList FileList::GetDefaultFilters()
|
QStringList FileList::GetDefaultFilters()
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
#ifndef FILELIST_H
|
#ifndef FILELIST_H
|
||||||
#define FILELIST_H
|
#define FILELIST_H
|
||||||
|
|
||||||
#include <QList>
|
|
||||||
#include <QFileInfoList>
|
#include <QFileInfoList>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QTextCodec>
|
#include <QTextCodec>
|
||||||
#include <QTranslator>
|
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
|
@ -18,12 +18,7 @@
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QMenu>
|
|
||||||
#include <QDirIterator>
|
|
||||||
#include <QMenuBar>
|
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QToolBar>
|
|
||||||
#include <QKeySequence>
|
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
|
@ -31,13 +26,18 @@
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QActionGroup>
|
#include <QActionGroup>
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
#include "cppcheck.h"
|
||||||
|
#include "applicationlist.h"
|
||||||
#include "aboutdialog.h"
|
#include "aboutdialog.h"
|
||||||
|
#include "common.h"
|
||||||
#include "threadhandler.h"
|
#include "threadhandler.h"
|
||||||
#include "fileviewdialog.h"
|
#include "fileviewdialog.h"
|
||||||
#include "projectfile.h"
|
#include "projectfile.h"
|
||||||
#include "project.h"
|
#include "project.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "statsdialog.h"
|
#include "statsdialog.h"
|
||||||
|
#include "settingsdialog.h"
|
||||||
|
#include "translationhandler.h"
|
||||||
#include "logview.h"
|
#include "logview.h"
|
||||||
#include "filelist.h"
|
#include "filelist.h"
|
||||||
#include "showtypes.h"
|
#include "showtypes.h"
|
||||||
|
|
|
@ -22,26 +22,20 @@
|
||||||
#include <QMainWindow>
|
#include <QMainWindow>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QSignalMapper>
|
|
||||||
#include <QActionGroup>
|
#include <QActionGroup>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QToolBar>
|
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#include "resultsview.h"
|
|
||||||
#include "settingsdialog.h"
|
|
||||||
#include "translationhandler.h"
|
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "platforms.h"
|
#include "platforms.h"
|
||||||
#include "ui_main.h"
|
#include "ui_main.h"
|
||||||
|
|
||||||
class ThreadHandler;
|
class ThreadHandler;
|
||||||
|
class TranslationHandler;
|
||||||
class LogView;
|
class LogView;
|
||||||
class Project;
|
class Project;
|
||||||
class ErrorItem;
|
class ErrorItem;
|
||||||
class StatsDialog;
|
|
||||||
class QAction;
|
class QAction;
|
||||||
class QActionGroup;
|
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QLineEdit>
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
|
@ -25,9 +25,7 @@
|
||||||
|
|
||||||
#include "ui_projectfile.h"
|
#include "ui_projectfile.h"
|
||||||
|
|
||||||
class ProjectFile;
|
|
||||||
class QWidget;
|
class QWidget;
|
||||||
class QLineEdit;
|
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include "erroritem.h"
|
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
Report::Report(const QString &filename, QObject * parent) :
|
Report::Report(const QString &filename, QObject * parent) :
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QStandardItem>
|
#include <QStandardItem>
|
||||||
#include <QModelIndex>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
@ -37,13 +36,11 @@
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QContextMenuEvent>
|
#include <QContextMenuEvent>
|
||||||
#include <QModelIndex>
|
#include <QModelIndex>
|
||||||
#include <QItemSelectionModel>
|
#include "common.h"
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
#include "settings.h"
|
|
||||||
#include "applicationlist.h"
|
#include "applicationlist.h"
|
||||||
#include "resultstree.h"
|
#include "resultstree.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "xmlreport.h"
|
|
||||||
#include "application.h"
|
#include "application.h"
|
||||||
#include "showtypes.h"
|
#include "showtypes.h"
|
||||||
|
|
||||||
|
|
|
@ -25,12 +25,10 @@
|
||||||
#include <QStandardItem>
|
#include <QStandardItem>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QContextMenuEvent>
|
#include <QContextMenuEvent>
|
||||||
#include <QTextStream>
|
|
||||||
#include "common.h"
|
|
||||||
#include "applicationlist.h"
|
|
||||||
#include "errorlogger.h" // Severity
|
#include "errorlogger.h" // Severity
|
||||||
#include "showtypes.h"
|
#include "showtypes.h"
|
||||||
|
|
||||||
|
class ApplicationList;
|
||||||
class Report;
|
class Report;
|
||||||
class ErrorItem;
|
class ErrorItem;
|
||||||
class ErrorLine;
|
class ErrorLine;
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QDebug>
|
|
||||||
#include <QFile>
|
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QStandardItemModel>
|
#include <QStandardItemModel>
|
||||||
#include <QStandardItem>
|
#include <QStandardItem>
|
||||||
|
@ -28,7 +26,6 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
#include "resultsview.h"
|
#include "resultsview.h"
|
||||||
#include "resultstree.h"
|
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "txtreport.h"
|
#include "txtreport.h"
|
||||||
#include "xmlreport.h"
|
#include "xmlreport.h"
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
|
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include "errorlogger.h"
|
|
||||||
#include "common.h"
|
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "showtypes.h"
|
#include "showtypes.h"
|
||||||
#include "ui_resultsview.h"
|
#include "ui_resultsview.h"
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
#include "ui_selectfilesdialog.h"
|
#include "ui_selectfilesdialog.h"
|
||||||
#include "filelist.h"
|
#include "filelist.h"
|
||||||
|
|
||||||
#include <QTreeView>
|
|
||||||
#include <QVBoxLayout>
|
|
||||||
#include <QFileSystemModel>
|
#include <QFileSystemModel>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
|
|
@ -19,11 +19,8 @@
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QLabel>
|
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QDebug>
|
|
||||||
#include <QListWidgetItem>
|
#include <QListWidgetItem>
|
||||||
#include <QTabWidget>
|
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
#define SETTINGSDIALOG_H
|
#define SETTINGSDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QKeyEvent>
|
|
||||||
#include "ui_settings.h"
|
#include "ui_settings.h"
|
||||||
|
|
||||||
class QSettings;
|
class QSettings;
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QMimeData>
|
#include <QMimeData>
|
||||||
#include "common.h"
|
|
||||||
#include "project.h"
|
#include "project.h"
|
||||||
#include "projectfile.h"
|
#include "projectfile.h"
|
||||||
#include "statsdialog.h"
|
#include "statsdialog.h"
|
||||||
|
|
|
@ -20,7 +20,9 @@
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include "common.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
#include "checkthread.h"
|
||||||
#include "threadhandler.h"
|
#include "threadhandler.h"
|
||||||
#include "resultsview.h"
|
#include "resultsview.h"
|
||||||
|
|
||||||
|
|
|
@ -24,11 +24,12 @@
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "settings.h"
|
|
||||||
#include "cppcheck.h"
|
|
||||||
#include "threadresult.h"
|
#include "threadresult.h"
|
||||||
#include "checkthread.h"
|
|
||||||
#include "resultsview.h"
|
class ResultsView;
|
||||||
|
class CheckThread;
|
||||||
|
class QSettings;
|
||||||
|
class Settings;
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#include <QMutex>
|
#include <QMutex>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QVariant>
|
|
||||||
#include "errorlogger.h"
|
#include "errorlogger.h"
|
||||||
|
|
||||||
class ErrorItem;
|
class ErrorItem;
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFile>
|
|
||||||
#include <QTextStream>
|
|
||||||
#include "txtreport.h"
|
#include "txtreport.h"
|
||||||
|
|
||||||
TxtReport::TxtReport(const QString &filename, QObject * parent) :
|
TxtReport::TxtReport(const QString &filename, QObject * parent) :
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
|
||||||
#include <QFile>
|
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFile>
|
|
||||||
#include <QXmlStreamWriter>
|
#include <QXmlStreamWriter>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
|
||||||
#include <QFile>
|
|
||||||
#include <QXmlStreamReader>
|
#include <QXmlStreamReader>
|
||||||
#include <QXmlStreamWriter>
|
#include <QXmlStreamWriter>
|
||||||
#include "xmlreport.h"
|
#include "xmlreport.h"
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFile>
|
|
||||||
#include <QXmlStreamWriter>
|
#include <QXmlStreamWriter>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
|
@ -21,11 +21,8 @@
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
|
||||||
#include <QFile>
|
|
||||||
#include <QXmlStreamReader>
|
#include <QXmlStreamReader>
|
||||||
#include <QXmlStreamWriter>
|
#include <QXmlStreamWriter>
|
||||||
#include "report.h"
|
|
||||||
#include "xmlreport.h"
|
#include "xmlreport.h"
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
|
|
Loading…
Reference in New Issue