analyzer: fix suppression dialog

Task-number: QTCREATORBUG-6500
Change-Id: I8297c91238c4edfd28d9813a92f082f33a6e763a
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-12-16 16:06:25 +01:00
committed by hjk
parent bd308acfcf
commit 0594d64380
6 changed files with 91 additions and 189 deletions

View File

@@ -37,19 +37,20 @@
#include "xmlprotocol/error.h"
#include <utils/pathchooser.h>
#include <QtGui/QDialog>
namespace Analyzer {
class AnalyzerSettings;
}
QT_BEGIN_NAMESPACE
class QPlainTextEdit;
class QDialogButtonBox;
QT_END_NAMESPACE
namespace Analyzer { class AnalyzerSettings; }
namespace Valgrind {
namespace Internal {
namespace Ui {
class SuppressionDialog;
}
class MemcheckErrorView;
class SuppressionDialog : public QDialog
@@ -57,23 +58,25 @@ class SuppressionDialog : public QDialog
Q_OBJECT
public:
SuppressionDialog(MemcheckErrorView *view);
~SuppressionDialog();
virtual void accept();
virtual void reject();
bool shouldShow() const;
SuppressionDialog(MemcheckErrorView *view,
const QList<XmlProtocol::Error> &errors);
static void maybeShow(MemcheckErrorView *view);
private slots:
void validate();
private:
void accept();
void reject();
MemcheckErrorView *m_view;
Ui::SuppressionDialog *m_ui;
Analyzer::AnalyzerSettings *m_settings;
bool m_cleanupIfCanceled;
QList<XmlProtocol::Error> m_errors;
Utils::PathChooser *m_fileChooser;
QPlainTextEdit *m_suppressionEdit;
QDialogButtonBox *m_buttonBox;
};
} // namespace Internal