Commit 60ccb25a authored by Tobias Hunger's avatar Tobias Hunger
Browse files

CustomWizard: s/struct/class/



Consistently use class to avoid warnings about class/struct mismatches.

Change-Id: I1ebd7b5b4687ed93db7f66c37193c9ca3900dede
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 52a90311
......@@ -67,7 +67,8 @@ namespace ProjectExplorer {
\sa ProjectExplorer::CustomWizard, ProjectExplorer::CustomProjectWizard
*/
struct CustomWizardPrivate {
class CustomWizardPrivate {
public:
CustomWizardPrivate() : m_context(new Internal::CustomWizardContext) {}
QSharedPointer<Internal::CustomWizardParameters> m_parameters;
......
......@@ -46,12 +46,12 @@ namespace Utils { class Wizard; }
namespace ProjectExplorer {
class CustomWizard;
struct CustomWizardPrivate;
class CustomWizardPrivate;
class BaseProjectWizardDialog;
namespace Internal {
struct CustomWizardParameters;
struct CustomWizardContext;
class CustomWizardParameters;
class CustomWizardContext;
}
// Documentation inside.
......
......@@ -47,9 +47,9 @@ namespace Utils { class PathChooser; }
namespace ProjectExplorer {
namespace Internal {
struct CustomWizardField;
struct CustomWizardParameters;
struct CustomWizardContext;
class CustomWizardField;
class CustomWizardParameters;
class CustomWizardContext;
// Documentation inside.
class TextFieldComboBox : public QComboBox {
......@@ -125,20 +125,23 @@ protected:
void showError(const QString &);
void clearError();
private:
struct LineEditData {
class LineEditData {
public:
explicit LineEditData(QLineEdit* le = 0, const QString &defText = QString(), const QString &pText = QString());
QLineEdit* lineEdit;
QString defaultText;
QString placeholderText;
QString userChange;
};
struct TextEditData {
class TextEditData {
public:
explicit TextEditData(QTextEdit* le = 0, const QString &defText = QString());
QTextEdit* textEdit;
QString defaultText;
QString userChange;
};
struct PathChooserData {
class PathChooserData {
public:
explicit PathChooserData(Utils::PathChooser* pe = 0, const QString &defText = QString());
Utils::PathChooser* pathChooser;
QString defaultText;
......
......@@ -46,7 +46,8 @@ QT_END_NAMESPACE
namespace ProjectExplorer {
namespace Internal {
struct CustomWizardField {
class CustomWizardField {
public:
// Parameters of the widget control are stored as map
typedef QMap<QString, QString> ControlAttributeMap;
CustomWizardField();
......@@ -98,7 +99,7 @@ struct GeneratorScriptArgument {
unsigned flags;
};
struct CustomWizardParameters
class CustomWizardParameters
{
public:
enum ParseResult { ParseOk, ParseDisabled, ParseFailed };
......@@ -126,7 +127,8 @@ public:
};
// Documentation inside.
struct CustomWizardContext {
class CustomWizardContext {
public:
typedef QMap<QString, QString> FieldReplacementMap;
typedef QSharedPointer<QTemporaryFile> TemporaryFilePtr;
typedef QList<TemporaryFilePtr> TemporaryFilePtrList;
......
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