Valgrind: Fix coding style issues.

Header specification, remove internal classes from exported
headers, fully qualify signals,slots.
This commit is contained in:
Friedemann Kleint
2011-03-08 13:56:52 +01:00
parent ecce5bca6f
commit f610bf4d45
47 changed files with 197 additions and 201 deletions

View File

@@ -41,10 +41,10 @@
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QTcpServer> #include <QtNetwork/QTcpServer>
#include <QTcpSocket> #include <QtNetwork/QTcpSocket>
#include <QEventLoop> #include <QtNetwork/QNetworkInterface>
#include <QNetworkInterface> #include <QtCore/QEventLoop>
using namespace Valgrind::Memcheck; using namespace Valgrind::Memcheck;

View File

@@ -35,9 +35,9 @@
#include "valgrindprocess.h" #include "valgrindprocess.h"
#include <QDebug> #include <QtCore/QDebug>
#include <QEventLoop> #include <QtCore/QEventLoop>
#include <QFileInfo> #include <QtCore/QFileInfo>
namespace Valgrind { namespace Valgrind {
namespace Internal { namespace Internal {

View File

@@ -40,7 +40,7 @@
#include <utils/environment.h> #include <utils/environment.h>
#include <QEventLoop> #include <QtCore/QEventLoop>
using namespace Valgrind; using namespace Valgrind;

View File

@@ -36,7 +36,7 @@
#ifndef VALGRIND_RUNNER_H #ifndef VALGRIND_RUNNER_H
#define VALGRIND_RUNNER_H #define VALGRIND_RUNNER_H
#include <QProcess> #include <QtCore/QProcess>
#include "valgrind_global.h" #include "valgrind_global.h"

View File

@@ -36,8 +36,8 @@
#include "announcethread.h" #include "announcethread.h"
#include "frame.h" #include "frame.h"
#include <QSharedData> #include <QtCore/QSharedData>
#include <QVector> #include <QtCore/QVector>
#include <algorithm> #include <algorithm>

View File

@@ -38,7 +38,7 @@
#include "../valgrind_global.h" #include "../valgrind_global.h"
#include <QSharedDataPointer> #include <QtCore/QSharedDataPointer>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
template <typename T> class QVector; template <typename T> class QVector;

View File

@@ -38,12 +38,12 @@
#include "stack.h" #include "stack.h"
#include "suppression.h" #include "suppression.h"
#include <QSharedData> #include <QtCore/QSharedData>
#include <QString> #include <QtCore/QString>
#include <QTextStream> #include <QtCore/QTextStream>
#include <QVector> #include <QtCore/QVector>
#include <QtAlgorithms> #include <QtCore/QtAlgorithms>
using namespace Valgrind; using namespace Valgrind;
using namespace Valgrind::XmlProtocol; using namespace Valgrind::XmlProtocol;

View File

@@ -38,8 +38,8 @@
#include "../valgrind_global.h" #include "../valgrind_global.h"
#include <QMetaType> #include <QtCore/QMetaType>
#include <QSharedDataPointer> #include <QtCore/QSharedDataPointer>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QString; class QString;

View File

@@ -40,8 +40,8 @@
#include "modelhelpers.h" #include "modelhelpers.h"
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QDir> #include <QtCore/QDir>
#include <QVector> #include <QtCore/QVector>
using namespace Valgrind; using namespace Valgrind;
using namespace Valgrind::XmlProtocol; using namespace Valgrind::XmlProtocol;

View File

@@ -38,8 +38,8 @@
#include "../valgrind_global.h" #include "../valgrind_global.h"
#include <QAbstractItemModel> #include <QtCore/QAbstractItemModel>
#include <QSharedPointer> #include <QtCore/QSharedPointer>
namespace Valgrind { namespace Valgrind {
namespace XmlProtocol { namespace XmlProtocol {

View File

@@ -35,9 +35,8 @@
#include "frame.h" #include "frame.h"
#include <QString> #include <QtCore/QString>
#include <QtCore/QtAlgorithms>
#include <QtAlgorithms>
using namespace Valgrind; using namespace Valgrind;
using namespace Valgrind::XmlProtocol; using namespace Valgrind::XmlProtocol;

View File

@@ -38,7 +38,7 @@
#include "../valgrind_global.h" #include "../valgrind_global.h"
#include <QSharedDataPointer> #include <QtCore/QSharedDataPointer>
namespace Valgrind { namespace Valgrind {
namespace XmlProtocol { namespace XmlProtocol {

View File

@@ -36,9 +36,9 @@
#include "stack.h" #include "stack.h"
#include "frame.h" #include "frame.h"
#include <QSharedData> #include <QtCore/QSharedData>
#include <QString> #include <QtCore/QString>
#include <QVector> #include <QtCore/QVector>
#include <algorithm> #include <algorithm>

View File

@@ -38,7 +38,7 @@
#include "../valgrind_global.h" #include "../valgrind_global.h"
#include <QSharedDataPointer> #include <QtCore/QSharedDataPointer>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
template <typename T> class QVector; template <typename T> class QVector;

View File

@@ -37,11 +37,12 @@
#include "error.h" #include "error.h"
#include "frame.h" #include "frame.h"
#include "stack.h" #include "stack.h"
#include "modelhelpers.h"
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QDir> #include <QtCore/QDir>
#include <QVector> #include <QtCore/QVector>
#include "modelhelpers.h"
using namespace Valgrind; using namespace Valgrind;
using namespace Valgrind::XmlProtocol; using namespace Valgrind::XmlProtocol;

View File

@@ -38,7 +38,7 @@
#include "../valgrind_global.h" #include "../valgrind_global.h"
#include <QAbstractItemModel> #include <QtCore/QAbstractItemModel>
namespace Valgrind { namespace Valgrind {
namespace XmlProtocol { namespace XmlProtocol {

View File

@@ -35,8 +35,8 @@
#include "status.h" #include "status.h"
#include <QSharedData> #include <QtCore/QSharedData>
#include <QString> #include <QtCore/QString>
using namespace Valgrind; using namespace Valgrind;
using namespace Valgrind::XmlProtocol; using namespace Valgrind::XmlProtocol;

View File

@@ -38,8 +38,8 @@
#include "../valgrind_global.h" #include "../valgrind_global.h"
#include <QMetaType> #include <QtCore/QMetaType>
#include <QSharedDataPointer> #include <QtCore/QSharedDataPointer>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QString; class QString;

View File

@@ -35,10 +35,10 @@
#include "suppression.h" #include "suppression.h"
#include <QSharedData> #include <QtCore/QSharedData>
#include <QString> #include <QtCore/QString>
#include <QVector> #include <QtCore/QVector>
#include <QTextStream> #include <QtCore/QTextStream>
#include <algorithm> #include <algorithm>

View File

@@ -38,7 +38,7 @@
#include "../valgrind_global.h" #include "../valgrind_global.h"
#include <QSharedDataPointer> #include <QtCore/QSharedDataPointer>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QString; class QString;

View File

@@ -41,9 +41,9 @@
#include "suppression.h" #include "suppression.h"
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QMetaType> #include <QtCore/QMetaType>
#include <QThread> #include <QtCore/QThread>
#include <QSharedPointer> #include <QtCore/QSharedPointer>
using namespace Valgrind; using namespace Valgrind;
using namespace Valgrind::XmlProtocol; using namespace Valgrind::XmlProtocol;

View File

@@ -38,7 +38,7 @@
#include "../valgrind_global.h" #include "../valgrind_global.h"
#include <QObject> #include <QtCore/QObject>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QIODevice; class QIODevice;

View File

@@ -36,14 +36,14 @@
#ifndef ANALYZERCONSTANTS_H #ifndef ANALYZERCONSTANTS_H
#define ANALYZERCONSTANTS_H #define ANALYZERCONSTANTS_H
#include <QtGlobal> #include <QtCore/QtGlobal>
namespace Analyzer { namespace Analyzer {
namespace Constants { namespace Constants {
// modes and their priorities // modes and their priorities
const char * const MODE_ANALYZE = "Analyzer.Mode.Analyze"; const char * const MODE_ANALYZE = "Analyzer.Mode.Analyze";
const int P_MODE_ANALYZE = 60; const int P_MODE_ANALYZE = 76;
// context // context
const char * const C_ANALYZEMODE = "Analyzer.AnalyzeMode"; const char * const C_ANALYZEMODE = "Analyzer.AnalyzeMode";

View File

@@ -34,6 +34,7 @@
**************************************************************************/ **************************************************************************/
#include "analyzermanager.h" #include "analyzermanager.h"
#include "analyzerconstants.h"
#include "ianalyzertool.h" #include "ianalyzertool.h"
#include "analyzerplugin.h" #include "analyzerplugin.h"
@@ -51,6 +52,9 @@
#include <coreplugin/actionmanager/actioncontainer.h> #include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/uniqueidmanager.h> #include <coreplugin/uniqueidmanager.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/imode.h>
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/projectexplorer.h> #include <projectexplorer/projectexplorer.h>
@@ -69,23 +73,22 @@
#include <cmakeprojectmanager/cmakeprojectconstants.h> #include <cmakeprojectmanager/cmakeprojectconstants.h>
#include <qt4projectmanager/qt4projectmanagerconstants.h> #include <qt4projectmanager/qt4projectmanagerconstants.h>
#include <QHBoxLayout> #include <QtCore/QVariant>
#include <QVBoxLayout> #include <QtCore/QDebug>
#include <QDockWidget> #include <QtGui/QHBoxLayout>
#include <QVariant> #include <QtGui/QVBoxLayout>
#include <QAction> #include <QtGui/QDockWidget>
#include <QMenu> #include <QtGui/QAction>
#include <QMenuBar> #include <QtGui/QMenu>
#include <QToolButton> #include <QtGui/QMenuBar>
#include <QComboBox> #include <QtGui/QToolButton>
#include <QStackedWidget> #include <QtGui/QComboBox>
#include <QDebug> #include <QtGui/QStackedWidget>
#include <QDialog> #include <QtGui/QDialog>
#include <QApplication> #include <QtGui/QApplication>
#include <QLabel> #include <QtGui/QLabel>
#include <QCheckBox> #include <QtGui/QCheckBox>
#include <QDialogButtonBox> #include <QtGui/QDialogButtonBox>
using namespace Core; using namespace Core;
using namespace Analyzer; using namespace Analyzer;
@@ -94,6 +97,20 @@ using namespace Analyzer::Internal;
namespace Analyzer { namespace Analyzer {
namespace Internal { namespace Internal {
class DockWidgetEventFilter : public QObject
{
Q_OBJECT
public:
explicit DockWidgetEventFilter(QObject *parent = 0) : QObject(parent) {}
signals:
void widgetResized();
protected:
virtual bool eventFilter(QObject *obj, QEvent *event);
};
bool DockWidgetEventFilter::eventFilter(QObject *obj, QEvent *event) bool DockWidgetEventFilter::eventFilter(QObject *obj, QEvent *event)
{ {
switch (event->type()) { switch (event->type()) {
@@ -109,6 +126,44 @@ bool DockWidgetEventFilter::eventFilter(QObject *obj, QEvent *event)
// AnalyzerMode //////////////////////////////////////////////////// // AnalyzerMode ////////////////////////////////////////////////////
class AnalyzerMode : public Core::IMode
{
Q_OBJECT
public:
AnalyzerMode(QObject *parent = 0)
: Core::IMode(parent)
, m_widget(0)
{}
~AnalyzerMode()
{
// Make sure the editor manager does not get deleted.
if (m_widget) {
delete m_widget;
m_widget = 0;
}
Core::EditorManager::instance()->setParent(0);
}
QString displayName() const { return tr("Analyze"); }
QIcon icon() const { return QIcon(":/images/analyzer_mode.png"); }
int priority() const { return Constants::P_MODE_ANALYZE; }
QWidget *widget() { return m_widget; }
QString id() const { return QLatin1String(Constants::MODE_ANALYZE); }
QString type() const { return Core::Constants::MODE_EDIT_TYPE; }
Core::Context context() const
{
return Core::Context(Core::Constants::C_EDITORMANAGER, Constants::C_ANALYZEMODE,
Core::Constants::C_NAVIGATION_PANE);
}
QString contextHelpId() const { return QString(); }
void setWidget(QWidget *widget) { m_widget = widget; }
private:
QWidget *m_widget;
};
} // namespace Internal } // namespace Internal
} // namespace Analyzer } // namespace Analyzer
@@ -181,8 +236,8 @@ AnalyzerManager::AnalyzerManagerPrivate::AnalyzerManagerPrivate(AnalyzerManager
{ {
m_runControlFactory = new AnalyzerRunControlFactory(); m_runControlFactory = new AnalyzerRunControlFactory();
AnalyzerPlugin::instance()->addAutoReleasedObject(m_runControlFactory); AnalyzerPlugin::instance()->addAutoReleasedObject(m_runControlFactory);
connect(m_runControlFactory, SIGNAL(runControlCreated(AnalyzerRunControl *)), connect(m_runControlFactory, SIGNAL(runControlCreated(Analyzer::Internal::AnalyzerRunControl *)),
q, SLOT(runControlCreated(AnalyzerRunControl *))); q, SLOT(runControlCreated(Analyzer::Internal::AnalyzerRunControl *)));
setupActions(); setupActions();
} }
@@ -699,3 +754,5 @@ void AnalyzerManager::updateRunActions()
bool startEnabled = !d->m_currentRunControl && pe->canRun(project, Constants::MODE_ANALYZE); bool startEnabled = !d->m_currentRunControl && pe->canRun(project, Constants::MODE_ANALYZE);
d->m_startAction->setEnabled(startEnabled); d->m_startAction->setEnabled(startEnabled);
} }
#include "analyzermanager.moc"

View File

@@ -37,14 +37,8 @@
#define ANALYZERMANAGER_H #define ANALYZERMANAGER_H
#include "analyzerbase_global.h" #include "analyzerbase_global.h"
#include "analyzerconstants.h"
#include <coreplugin/coreconstants.h> #include <QtCore/QObject>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/imode.h>
#include <QObject>
#include <QIcon>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QAction; class QAction;
@@ -60,68 +54,10 @@ class FancyMainWindow;
} }
namespace Analyzer { namespace Analyzer {
class IAnalyzerTool; class IAnalyzerTool;
namespace Internal { namespace Internal {
class AnalyzerRunControl; class AnalyzerRunControl;
} // namespace Internal
class DockWidgetEventFilter : public QObject
{
Q_OBJECT
public:
explicit DockWidgetEventFilter(QObject *parent = 0) : QObject(parent) {}
signals:
void widgetResized();
protected:
virtual bool eventFilter(QObject *obj, QEvent *event);
};
class AnalyzerMode : public Core::IMode
{
Q_OBJECT
public:
AnalyzerMode(QObject *parent = 0)
: Core::IMode(parent)
, m_widget(0)
{}
~AnalyzerMode()
{
// Make sure the editor manager does not get deleted.
if (m_widget) {
delete m_widget;
m_widget = 0;
}
Core::EditorManager::instance()->setParent(0);
}
QString displayName() const { return tr("Analyze"); }
QIcon icon() const { return QIcon(":/images/analyzer_mode.png"); }
int priority() const { return Constants::P_MODE_ANALYZE; }
QWidget *widget() { return m_widget; }
QString id() const { return QLatin1String(Constants::MODE_ANALYZE); }
QString type() const { return Core::Constants::MODE_EDIT_TYPE; }
Core::Context context() const
{
return Core::Context(Core::Constants::C_EDITORMANAGER, Constants::C_ANALYZEMODE,
Core::Constants::C_NAVIGATION_PANE);
}
QString contextHelpId() const { return QString(); }
void setWidget(QWidget *widget) { m_widget = widget; }
private:
QWidget *m_widget;
};
}
using Analyzer::Internal::AnalyzerRunControl;
class ANALYZER_EXPORT AnalyzerManager : public QObject class ANALYZER_EXPORT AnalyzerManager : public QObject
{ {
@@ -167,10 +103,10 @@ private slots:
void toolSelected(int); void toolSelected(int);
void toolSelected(QAction *); void toolSelected(QAction *);
void modeChanged(Core::IMode *mode); void modeChanged(Core::IMode *mode);
void runControlCreated(AnalyzerRunControl *); void runControlCreated(Analyzer::Internal::AnalyzerRunControl *);
void resetLayout(); void resetLayout();
void saveToolSettings(IAnalyzerTool *tool); void saveToolSettings(Analyzer::IAnalyzerTool *tool);
void loadToolSettings(IAnalyzerTool *tool); void loadToolSettings(Analyzer::IAnalyzerTool *tool);
void updateRunActions(); void updateRunActions();
private: private:

View File

@@ -38,14 +38,15 @@
#include "analyzeroptionspage.h" #include "analyzeroptionspage.h"
#include "analyzersettings.h" #include "analyzersettings.h"
#include <QCoreApplication>
#include <QLatin1String>
#include <QWidget>
#include <QDebug>
#include <QIcon>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <QtCore/QCoreApplication>
#include <QtCore/QLatin1String>
#include <QtCore/QDebug>
#include <QtGui/QIcon>
#include <QtGui/QWidget>
using namespace Analyzer; using namespace Analyzer;
using namespace Analyzer::Internal; using namespace Analyzer::Internal;

View File

@@ -45,10 +45,10 @@
#include <projectexplorer/task.h> #include <projectexplorer/task.h>
#include <projectexplorer/taskhub.h> #include <projectexplorer/taskhub.h>
#include <QtPlugin> #include <QtCore/QtPlugin>
#include <QMessageBox> #include <QtGui/QMessageBox>
#include <QMainWindow> #include <QtGui/QMainWindow>
#include <QApplication> #include <QtGui/QApplication>
using namespace Analyzer; using namespace Analyzer;
using namespace Analyzer::Internal; using namespace Analyzer::Internal;

View File

@@ -40,9 +40,9 @@
#include <utils/detailswidget.h> #include <utils/detailswidget.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QDebug> #include <QtCore/QDebug>
#include <QGroupBox> #include <QtGui/QGroupBox>
#include <QVBoxLayout> #include <QtGui/QVBoxLayout>
using namespace Analyzer; using namespace Analyzer;
using namespace Analyzer::Internal; using namespace Analyzer::Internal;
@@ -82,6 +82,7 @@ void AnalyzerRunConfigWidget::setRunConfiguration(ProjectExplorer::RunConfigurat
QLayout* layout = m_detailsWidget->widget()->layout(); QLayout* layout = m_detailsWidget->widget()->layout();
foreach(AbstractAnalyzerSubConfig *config, settings->subConfigs()) { foreach(AbstractAnalyzerSubConfig *config, settings->subConfigs()) {
QGroupBox* box = new QGroupBox(config->displayName()); QGroupBox* box = new QGroupBox(config->displayName());
Q_UNUSED(box)
QWidget* widget = config->createConfigWidget(this); QWidget* widget = config->createConfigWidget(this);
layout->addWidget(widget); layout->addWidget(widget);
} }

View File

@@ -49,10 +49,10 @@
#include <projectexplorer/taskhub.h> #include <projectexplorer/taskhub.h>
#include <coreplugin/ioutputpane.h> #include <coreplugin/ioutputpane.h>
#include <QDebug> #include <QtCore/QDebug>
#include <QHBoxLayout> #include <QtGui/QHBoxLayout>
#include <QLabel> #include <QtGui/QLabel>
#include <QMessageBox> #include <QtGui/QMessageBox>
using namespace Analyzer; using namespace Analyzer;
using namespace Analyzer::Internal; using namespace Analyzer::Internal;

View File

@@ -72,7 +72,7 @@ public:
ProjectExplorer::RunConfigWidget *createConfigurationWidget(RunConfiguration *runConfiguration); ProjectExplorer::RunConfigWidget *createConfigurationWidget(RunConfiguration *runConfiguration);
signals: signals:
void runControlCreated(AnalyzerRunControl *); void runControlCreated(Analyzer::Internal::AnalyzerRunControl *);
}; };

View File

@@ -44,7 +44,7 @@
#include <valgrind/xmlprotocol/error.h> #include <valgrind/xmlprotocol/error.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QSettings> #include <QtCore/QSettings>
using namespace Analyzer; using namespace Analyzer;
using namespace Analyzer::Internal; using namespace Analyzer::Internal;

View File

@@ -36,8 +36,8 @@
#ifndef ANALYZER_INTERNAL_ANALYZERSETTINGS_H #ifndef ANALYZER_INTERNAL_ANALYZERSETTINGS_H
#define ANALYZER_INTERNAL_ANALYZERSETTINGS_H #define ANALYZER_INTERNAL_ANALYZERSETTINGS_H
#include <QObject> #include <QtCore/QObject>
#include <QVariant> #include <QtCore/QVariant>
#include "analyzerbase_global.h" #include "analyzerbase_global.h"

View File

@@ -40,8 +40,8 @@
#include <projectexplorer/task.h> #include <projectexplorer/task.h>
#include <QObject> #include <QtCore/QObject>
#include <QString> #include <QtCore/QString>
namespace ProjectExplorer { namespace ProjectExplorer {
class RunConfiguration; class RunConfiguration;

View File

@@ -38,7 +38,7 @@
#include "analyzerbase_global.h" #include "analyzerbase_global.h"
#include <QObject> #include <QtCore/QObject>
namespace ProjectExplorer { namespace ProjectExplorer {
class RunConfiguration; class RunConfiguration;

View File

@@ -41,9 +41,9 @@
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QStandardItemModel> #include <QtGui/QStandardItemModel>
#include <QFileDialog> #include <QtGui/QFileDialog>
#include <QDebug> #include <QtCore/QDebug>
using namespace Analyzer::Internal; using namespace Analyzer::Internal;

View File

@@ -37,7 +37,7 @@
#ifndef ANALYZER_INTERNAL_MEMCHECKCONFIGWIDGET_H #ifndef ANALYZER_INTERNAL_MEMCHECKCONFIGWIDGET_H
#define ANALYZER_INTERNAL_MEMCHECKCONFIGWIDGET_H #define ANALYZER_INTERNAL_MEMCHECKCONFIGWIDGET_H
#include <QWidget> #include <QtGui/QWidget>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QStandardItemModel; class QStandardItemModel;

View File

@@ -41,8 +41,8 @@
#include "memchecktool.h" #include "memchecktool.h"
#include "memchecksettings.h" #include "memchecksettings.h"
#include <QStringList> #include <QtCore/QStringList>
#include <QtPlugin> #include <QtCore/QtPlugin>
using namespace Analyzer; using namespace Analyzer;
using namespace Analyzer::Internal; using namespace Analyzer::Internal;

View File

@@ -73,21 +73,22 @@
#include <utils/styledbar.h> #include <utils/styledbar.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QString> #include <QtCore/QString>
#include <QLatin1String> #include <QtCore/QLatin1String>
#include <QFileInfo> #include <QtCore/QFileInfo>
#include <QDockWidget> #include <QtCore/QFile>
#include <QFile> #include <QtCore/QDir>
#include <QDir>
#include <QHBoxLayout> #include <QtGui/QDockWidget>
#include <QComboBox> #include <QtGui/QHBoxLayout>
#include <QLabel> #include <QtGui/QComboBox>
#include <QSpinBox> #include <QtGui/QLabel>
#include <QAction> #include <QtGui/QSpinBox>
#include <QMenu> #include <QtGui/QAction>
#include <QMessageBox> #include <QtGui/QMenu>
#include <QToolButton> #include <QtGui/QMessageBox>
#include <QCheckBox> #include <QtGui/QToolButton>
#include <QtGui/QCheckBox>
#include <utils/stylehelper.h> #include <utils/stylehelper.h>
using namespace Analyzer; using namespace Analyzer;

View File

@@ -38,8 +38,8 @@
#include <analyzerbase/ianalyzertool.h> #include <analyzerbase/ianalyzertool.h>
#include <QSortFilterProxyModel> #include <QtGui/QSortFilterProxyModel>
#include <QSharedPointer> #include <QtCore/QSharedPointer>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QItemSelection; class QItemSelection;

View File

@@ -48,8 +48,8 @@
#include <utils/pathchooser.h> #include <utils/pathchooser.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QFile> #include <QtCore/QFile>
#include <QPushButton> #include <QtGui/QPushButton>
#include <valgrind/xmlprotocol/suppression.h> #include <valgrind/xmlprotocol/suppression.h>
#include <valgrind/xmlprotocol/errorlistmodel.h> #include <valgrind/xmlprotocol/errorlistmodel.h>

View File

@@ -37,7 +37,7 @@
#ifndef ANALYZER_VALGRIND_INTERNAL_SUPPRESSIONDIALOG_H #ifndef ANALYZER_VALGRIND_INTERNAL_SUPPRESSIONDIALOG_H
#define ANALYZER_VALGRIND_INTERNAL_SUPPRESSIONDIALOG_H #define ANALYZER_VALGRIND_INTERNAL_SUPPRESSIONDIALOG_H
#include <QDialog> #include <QtGui/QDialog>
#include <valgrind/xmlprotocol/error.h> #include <valgrind/xmlprotocol/error.h>

View File

@@ -39,7 +39,7 @@
#include "valgrindsettings.h" #include "valgrindsettings.h"
#include <QDebug> #include <QtCore/QDebug>
using namespace Analyzer::Internal; using namespace Analyzer::Internal;

View File

@@ -37,7 +37,7 @@
#ifndef ANALYZER_INTERNAL_VALGRINDCONFIGWIDGET_H #ifndef ANALYZER_INTERNAL_VALGRINDCONFIGWIDGET_H
#define ANALYZER_INTERNAL_VALGRINDCONFIGWIDGET_H #define ANALYZER_INTERNAL_VALGRINDCONFIGWIDGET_H
#include <QWidget> #include <QtGui/QWidget>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
namespace Ui { namespace Ui {

View File

@@ -44,9 +44,9 @@
#include <valgrind/valgrindrunner.h> #include <valgrind/valgrindrunner.h>
#include <QString> #include <QtCore/QString>
#include <QByteArray> #include <QtCore/QByteArray>
#include <QFutureInterface> #include <QtCore/QFutureInterface>
namespace Analyzer { namespace Analyzer {

View File

@@ -40,7 +40,7 @@
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QSettings> #include <QtCore/QSettings>
using namespace Analyzer::Internal; using namespace Analyzer::Internal;
using namespace Analyzer; using namespace Analyzer;

View File

@@ -40,8 +40,8 @@
#include "valgrindtoolbase_global.h" #include "valgrindtoolbase_global.h"
#include <QObject> #include <QtCore/QObject>
#include <QVariant> #include <QtCore/QVariant>
namespace Analyzer { namespace Analyzer {
namespace Internal { namespace Internal {

View File

@@ -39,8 +39,8 @@
#include <analyzerbase/analyzersettings.h> #include <analyzerbase/analyzersettings.h>
#include <QStringList> #include <QtCore/QStringList>
#include <QtPlugin> #include <QtCore/QtPlugin>
using namespace Analyzer; using namespace Analyzer;
using namespace Analyzer::Internal; using namespace Analyzer::Internal;