forked from qt-creator/qt-creator
Fix krazy issues: Use explicit constructors
* Fix all warnings about non-explicit constructors except for those in 3rdparty code.
This commit is contained in:
@@ -9,7 +9,7 @@ class LoggerModeWidget : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LoggerModeWidget(const QString projectName, QWidget* parent = 0);
|
explicit LoggerModeWidget(const QString projectName, QWidget* parent = 0);
|
||||||
~LoggerModeWidget();
|
~LoggerModeWidget();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class ModelClassWizard : public Core::BaseFileWizard
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ModelClassWizard(const Core::BaseFileWizardParameters ¶meters, QObject *parent = 0);
|
explicit ModelClassWizard(const Core::BaseFileWizardParameters ¶meters, QObject *parent = 0);
|
||||||
~ModelClassWizard();
|
~ModelClassWizard();
|
||||||
|
|
||||||
QWizard *createWizardDialog(QWidget *parent,
|
QWizard *createWizardDialog(QWidget *parent,
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class MyMain : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MyMain(QWidget *parent = 0, Qt::WFlags flags = 0);
|
explicit MyMain(QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||||
~MyMain();
|
~MyMain();
|
||||||
|
|
||||||
void add(IComboEntry *obj);
|
void add(IComboEntry *obj);
|
||||||
|
|||||||
@@ -41,9 +41,9 @@ class CPLUSPLUS_EXPORT BackwardsScanner
|
|||||||
enum { MAX_BLOCK_COUNT = 10 };
|
enum { MAX_BLOCK_COUNT = 10 };
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BackwardsScanner(const QTextCursor &cursor,
|
explicit BackwardsScanner(const QTextCursor &cursor,
|
||||||
int maxBlockCount = MAX_BLOCK_COUNT,
|
int maxBlockCount = MAX_BLOCK_COUNT,
|
||||||
const QString &suffix = QString());
|
const QString &suffix = QString());
|
||||||
|
|
||||||
int startToken() const;
|
int startToken() const;
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class CPLUSPLUS_EXPORT MacroArgumentReference
|
|||||||
unsigned _length;
|
unsigned _length;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MacroArgumentReference(unsigned position = 0, unsigned length = 0)
|
explicit MacroArgumentReference(unsigned position = 0, unsigned length = 0)
|
||||||
: _position(position), _length(length)
|
: _position(position), _length(length)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class MacroExpander
|
|||||||
const QByteArray *resolve_formal(const QByteArray &name);
|
const QByteArray *resolve_formal(const QByteArray &name);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MacroExpander(Environment *env, pp_frame *frame = 0, Client *client = 0, unsigned start_offset = 0);
|
explicit MacroExpander(Environment *env, pp_frame *frame = 0, Client *client = 0, unsigned start_offset = 0);
|
||||||
|
|
||||||
const char *operator()(const char *first, const char *last,
|
const char *operator()(const char *first, const char *last,
|
||||||
QByteArray *result);
|
QByteArray *result);
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ class EXTENSIONSYSTEM_EXPORT PluginView : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PluginView(PluginManager *manager, QWidget *parent = 0);
|
explicit PluginView(PluginManager *manager, QWidget *parent = 0);
|
||||||
~PluginView();
|
~PluginView();
|
||||||
|
|
||||||
PluginSpec *currentPlugin() const;
|
PluginSpec *currentPlugin() const;
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ class QML_PARSER_EXPORT UiFormal: public Node
|
|||||||
public:
|
public:
|
||||||
QMLJS_DECLARE_AST_NODE(UiFormal)
|
QMLJS_DECLARE_AST_NODE(UiFormal)
|
||||||
|
|
||||||
UiFormal(NameId *name, NameId *alias = 0)
|
explicit UiFormal(NameId *name, NameId *alias = 0)
|
||||||
: name(name), alias(alias)
|
: name(name), alias(alias)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
@@ -1762,7 +1762,7 @@ class QML_PARSER_EXPORT CaseBlock: public Node
|
|||||||
public:
|
public:
|
||||||
QMLJS_DECLARE_AST_NODE(CaseBlock)
|
QMLJS_DECLARE_AST_NODE(CaseBlock)
|
||||||
|
|
||||||
CaseBlock(CaseClauses *c, DefaultClause *d = 0, CaseClauses *r = 0):
|
explicit CaseBlock(CaseClauses *c, DefaultClause *d = 0, CaseClauses *r = 0):
|
||||||
clauses (c), defaultClause (d), moreClauses (r)
|
clauses (c), defaultClause (d), moreClauses (r)
|
||||||
{ kind = K; }
|
{ kind = K; }
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ namespace QmlJS { namespace AST {
|
|||||||
class SourceLocation
|
class SourceLocation
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SourceLocation(quint32 offset = 0, quint32 length = 0, quint32 line = 0, quint32 column = 0)
|
explicit SourceLocation(quint32 offset = 0, quint32 length = 0, quint32 line = 0, quint32 column = 0)
|
||||||
: offset(offset), length(length),
|
: offset(offset), length(length),
|
||||||
startLine(line), startColumn(column)
|
startLine(line), startColumn(column)
|
||||||
{ }
|
{ }
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class NameId;
|
|||||||
class QML_PARSER_EXPORT Lexer
|
class QML_PARSER_EXPORT Lexer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Lexer(Engine *eng, bool tokenizeComments = false);
|
explicit Lexer(Engine *eng, bool tokenizeComments = false);
|
||||||
~Lexer();
|
~Lexer();
|
||||||
|
|
||||||
void setCode(const QString &c, int lineno);
|
void setCode(const QString &c, int lineno);
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class QDeclarativeEngineDebug : public QObject
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
QDeclarativeEngineDebug(QDeclarativeDebugConnection *, QObject * = 0);
|
explicit QDeclarativeEngineDebug(QDeclarativeDebugConnection *, QObject * = 0);
|
||||||
~QDeclarativeEngineDebug();
|
~QDeclarativeEngineDebug();
|
||||||
|
|
||||||
QDeclarativeDebugPropertyWatch *addWatch(const QDeclarativeDebugPropertyReference &,
|
QDeclarativeDebugPropertyWatch *addWatch(const QDeclarativeDebugPropertyReference &,
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public:
|
|||||||
SymbolLocation();
|
SymbolLocation();
|
||||||
|
|
||||||
//! Constructor
|
//! Constructor
|
||||||
SymbolLocation(QString file, int lineNumber = 0, int columnNumber = 0);
|
explicit SymbolLocation(QString file, int lineNumber = 0, int columnNumber = 0);
|
||||||
|
|
||||||
inline const QString &fileName() const { return m_fileName; }
|
inline const QString &fileName() const { return m_fileName; }
|
||||||
inline int line() const { return m_line; }
|
inline int line() const { return m_line; }
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class ShadowBuildPage : public QWizardPage
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
ShadowBuildPage(CMakeOpenProjectWizard *cmakeWizard, bool change = false);
|
explicit ShadowBuildPage(CMakeOpenProjectWizard *cmakeWizard, bool change = false);
|
||||||
private slots:
|
private slots:
|
||||||
void buildDirectoryChanged();
|
void buildDirectoryChanged();
|
||||||
private:
|
private:
|
||||||
@@ -121,7 +121,7 @@ class CMakeRunPage : public QWizardPage
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
enum Mode { Initial, Update, Recreate, Change };
|
enum Mode { Initial, Update, Recreate, Change };
|
||||||
CMakeRunPage(CMakeOpenProjectWizard *cmakeWizard, Mode mode = Initial, const QString &buildDirectory = QString());
|
explicit CMakeRunPage(CMakeOpenProjectWizard *cmakeWizard, Mode mode = Initial, const QString &buildDirectory = QString());
|
||||||
|
|
||||||
virtual void initializePage();
|
virtual void initializePage();
|
||||||
virtual void cleanupPage();
|
virtual void cleanupPage();
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ class CMakeRunConfigurationWidget : public QWidget
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
CMakeRunConfigurationWidget(CMakeRunConfiguration *cmakeRunConfiguration, QWidget *parent = 0);
|
explicit CMakeRunConfigurationWidget(CMakeRunConfiguration *cmakeRunConfiguration, QWidget *parent = 0);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void setArguments(const QString &args);
|
void setArguments(const QString &args);
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class CORE_EXPORT EditorManagerPlaceHolder : public QWidget
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
EditorManagerPlaceHolder(Core::IMode *mode, QWidget *parent = 0);
|
explicit EditorManagerPlaceHolder(Core::IMode *mode, QWidget *parent = 0);
|
||||||
~EditorManagerPlaceHolder();
|
~EditorManagerPlaceHolder();
|
||||||
static EditorManagerPlaceHolder* current();
|
static EditorManagerPlaceHolder* current();
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class CORE_EXPORT FindToolBarPlaceHolder : public QWidget
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
FindToolBarPlaceHolder(QWidget *owner, QWidget *parent = 0);
|
explicit FindToolBarPlaceHolder(QWidget *owner, QWidget *parent = 0);
|
||||||
~FindToolBarPlaceHolder();
|
~FindToolBarPlaceHolder();
|
||||||
QWidget *owner() const;
|
QWidget *owner() const;
|
||||||
void setWidget(QWidget *widget);
|
void setWidget(QWidget *widget);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace Internal {
|
|||||||
class FlowLayout : public QLayout
|
class FlowLayout : public QLayout
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FlowLayout(QWidget *parent, int margin = 0, int spacing = -1);
|
explicit FlowLayout(QWidget *parent, int margin = 0, int spacing = -1);
|
||||||
FlowLayout(int spacing = -1);
|
FlowLayout(int spacing = -1);
|
||||||
~FlowLayout();
|
~FlowLayout();
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class CORE_EXPORT NavigationWidgetPlaceHolder : public QWidget
|
|||||||
friend class Core::NavigationWidget;
|
friend class Core::NavigationWidget;
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
NavigationWidgetPlaceHolder(Core::IMode *mode, QWidget *parent = 0);
|
explicit NavigationWidgetPlaceHolder(Core::IMode *mode, QWidget *parent = 0);
|
||||||
~NavigationWidgetPlaceHolder();
|
~NavigationWidgetPlaceHolder();
|
||||||
static NavigationWidgetPlaceHolder* current();
|
static NavigationWidgetPlaceHolder* current();
|
||||||
void applyStoredSize(int width);
|
void applyStoredSize(int width);
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class CORE_EXPORT OutputPanePlaceHolder : public QWidget
|
|||||||
friend class Core::Internal::OutputPaneManager; // needs to set m_visible and thus access m_current
|
friend class Core::Internal::OutputPaneManager; // needs to set m_visible and thus access m_current
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
OutputPanePlaceHolder(Core::IMode *mode, QSplitter *parent = 0);
|
explicit OutputPanePlaceHolder(Core::IMode *mode, QSplitter *parent = 0);
|
||||||
~OutputPanePlaceHolder();
|
~OutputPanePlaceHolder();
|
||||||
void setCloseable(bool b);
|
void setCloseable(bool b);
|
||||||
bool closeable();
|
bool closeable();
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class CORE_EXPORT RightPanePlaceHolder : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RightPanePlaceHolder(Core::IMode *mode, QWidget *parent = 0);
|
explicit RightPanePlaceHolder(Core::IMode *mode, QWidget *parent = 0);
|
||||||
~RightPanePlaceHolder();
|
~RightPanePlaceHolder();
|
||||||
static RightPanePlaceHolder *current();
|
static RightPanePlaceHolder *current();
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class CPPEDITOR_EXPORT CppQuickFixOperation: public TextEditor::QuickFixOperatio
|
|||||||
Q_DISABLE_COPY(CppQuickFixOperation)
|
Q_DISABLE_COPY(CppQuickFixOperation)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CppQuickFixOperation(const CppQuickFixState &state, int priority = -1);
|
explicit CppQuickFixOperation(const CppQuickFixState &state, int priority = -1);
|
||||||
virtual ~CppQuickFixOperation();
|
virtual ~CppQuickFixOperation();
|
||||||
|
|
||||||
virtual void perform();
|
virtual void perform();
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ public:
|
|||||||
// A list of state indicators and file names.
|
// A list of state indicators and file names.
|
||||||
typedef QPair<State, QString> StateFilePair;
|
typedef QPair<State, QString> StateFilePair;
|
||||||
|
|
||||||
CVSSubmitEditor(const VCSBase::VCSBaseSubmitEditorParameters *parameters,
|
explicit CVSSubmitEditor(const VCSBase::VCSBaseSubmitEditorParameters *parameters,
|
||||||
QWidget *parentWidget = 0);
|
QWidget *parentWidget = 0);
|
||||||
|
|
||||||
void setStateList(const QList<StateFilePair> &statusOutput);
|
void setStateList(const QList<StateFilePair> &statusOutput);
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public:
|
|||||||
DumperLoadedByGdb
|
DumperLoadedByGdb
|
||||||
};
|
};
|
||||||
|
|
||||||
AbstractGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
explicit AbstractGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
||||||
virtual ~AbstractGdbAdapter();
|
virtual ~AbstractGdbAdapter();
|
||||||
|
|
||||||
virtual void write(const QByteArray &data);
|
virtual void write(const QByteArray &data);
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class AbstractPlainGdbAdapter : public AbstractGdbAdapter
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AbstractPlainGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
explicit AbstractPlainGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
||||||
|
|
||||||
virtual void setupInferior();
|
virtual void setupInferior();
|
||||||
void runEngine();
|
void runEngine();
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class AttachGdbAdapter : public AbstractGdbAdapter
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AttachGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
explicit AttachGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DumperHandling dumperHandling() const { return DumperLoadedByGdb; }
|
DumperHandling dumperHandling() const { return DumperLoadedByGdb; }
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class CoreGdbAdapter : public AbstractGdbAdapter
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CoreGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
explicit CoreGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DumperHandling dumperHandling() const { return DumperNotAvailable; }
|
DumperHandling dumperHandling() const { return DumperNotAvailable; }
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class LocalPlainGdbAdapter : public AbstractPlainGdbAdapter
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LocalPlainGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
explicit LocalPlainGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void startAdapter();
|
void startAdapter();
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class DEBUGGER_EXPORT RemotePlainGdbAdapter : public AbstractPlainGdbAdapter
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
friend class RemoteGdbProcess;
|
friend class RemoteGdbProcess;
|
||||||
RemotePlainGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
explicit RemotePlainGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
||||||
void handleSetupDone();
|
void handleSetupDone();
|
||||||
void handleSetupFailed(const QString &reason);
|
void handleSetupFailed(const QString &reason);
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class TermGdbAdapter : public AbstractGdbAdapter
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TermGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
explicit TermGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
||||||
~TermGdbAdapter();
|
~TermGdbAdapter();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class WatchWindow : public QTreeView
|
|||||||
public:
|
public:
|
||||||
enum Type { ReturnType, LocalsType, TooltipType, WatchersType };
|
enum Type { ReturnType, LocalsType, TooltipType, WatchersType };
|
||||||
|
|
||||||
WatchWindow(Type type, QWidget *parent = 0);
|
explicit WatchWindow(Type type, QWidget *parent = 0);
|
||||||
Type type() const { return m_type; }
|
Type type() const { return m_type; }
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class FormEditorW;
|
|||||||
class QtCreatorIntegration : public qdesigner_internal::QDesignerIntegration {
|
class QtCreatorIntegration : public qdesigner_internal::QDesignerIntegration {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
QtCreatorIntegration(QDesignerFormEditorInterface *core, FormEditorW *parent = 0);
|
explicit QtCreatorIntegration(QDesignerFormEditorInterface *core, FormEditorW *parent = 0);
|
||||||
|
|
||||||
QWidget *containerWindow(QWidget *widget) const;
|
QWidget *containerWindow(QWidget *widget) const;
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class FakeVimHandler : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FakeVimHandler(QWidget *widget, QObject *parent = 0);
|
explicit FakeVimHandler(QWidget *widget, QObject *parent = 0);
|
||||||
~FakeVimHandler();
|
~FakeVimHandler();
|
||||||
|
|
||||||
QWidget *widget();
|
QWidget *widget();
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ namespace Internal {
|
|||||||
class SearchResultTreeItem
|
class SearchResultTreeItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SearchResultTreeItem(const SearchResultItem &item = SearchResultItem(),
|
explicit SearchResultTreeItem(const SearchResultItem &item = SearchResultItem(),
|
||||||
SearchResultTreeItem *parent = NULL);
|
SearchResultTreeItem *parent = NULL);
|
||||||
virtual ~SearchResultTreeItem();
|
virtual ~SearchResultTreeItem();
|
||||||
|
|
||||||
bool isLeaf() const;
|
bool isLeaf() const;
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class HelpMode : public Core::BaseMode
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
HelpMode(QWidget *widget, QObject *parent = 0);
|
explicit HelpMode(QWidget *widget, QObject *parent = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class HelpViewer : public QTextBrowser
|
|||||||
Q_DISABLE_COPY(HelpViewer)
|
Q_DISABLE_COPY(HelpViewer)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
HelpViewer(qreal zoom, QWidget *parent = 0);
|
explicit HelpViewer(qreal zoom, QWidget *parent = 0);
|
||||||
~HelpViewer();
|
~HelpViewer();
|
||||||
|
|
||||||
QFont viewerFont() const;
|
QFont viewerFont() const;
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class OpenPagesWidget : public QTreeView
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OpenPagesWidget(OpenPagesModel *model, QWidget *parent = 0);
|
explicit OpenPagesWidget(OpenPagesModel *model, QWidget *parent = 0);
|
||||||
~OpenPagesWidget();
|
~OpenPagesWidget();
|
||||||
|
|
||||||
void selectCurrentPage();
|
void selectCurrentPage();
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ class RemoteFilterOptions : public QDialog
|
|||||||
friend class RemoteHelpFilter;
|
friend class RemoteHelpFilter;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RemoteFilterOptions(RemoteHelpFilter *filter, QWidget *parent = 0);
|
explicit RemoteFilterOptions(RemoteHelpFilter *filter, QWidget *parent = 0);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void addNewItem();
|
void addNewItem();
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class PendingChangesDialog : public QDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PendingChangesDialog(const QString &data, QWidget *parent = 0);
|
explicit PendingChangesDialog(const QString &data, QWidget *parent = 0);
|
||||||
int changeNumber() const;
|
int changeNumber() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class BuildConfigurationModel : public QAbstractListModel
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
BuildConfigurationModel(Target *target, QObject *parent = 0);
|
explicit BuildConfigurationModel(Target *target, QObject *parent = 0);
|
||||||
|
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class DeployConfigurationModel : public QAbstractListModel
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
DeployConfigurationModel(Target *target, QObject *parent = 0);
|
explicit DeployConfigurationModel(Target *target, QObject *parent = 0);
|
||||||
|
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ class PROJECTEXPLORER_EXPORT EnvironmentWidget : public QWidget
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
EnvironmentWidget(QWidget *parent, QWidget *additionalDetailsWidget = 0);
|
explicit EnvironmentWidget(QWidget *parent, QWidget *additionalDetailsWidget = 0);
|
||||||
~EnvironmentWidget();
|
~EnvironmentWidget();
|
||||||
|
|
||||||
void setBaseEnvironmentText(const QString &text);
|
void setBaseEnvironmentText(const QString &text);
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ private:
|
|||||||
ProjectExplorer::Project* m_project;
|
ProjectExplorer::Project* m_project;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ProjectListWidget(ProjectExplorer::Project *project, QWidget *parent = 0);
|
explicit ProjectListWidget(ProjectExplorer::Project *project, QWidget *parent = 0);
|
||||||
|
|
||||||
QSize sizeHint() const;
|
QSize sizeHint() const;
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ class MiniTargetWidget : public QWidget
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
MiniTargetWidget(ProjectExplorer::Target *target, QWidget *parent = 0);
|
explicit MiniTargetWidget(ProjectExplorer::Target *target, QWidget *parent = 0);
|
||||||
ProjectExplorer::Target *target() const;
|
ProjectExplorer::Target *target() const;
|
||||||
|
|
||||||
bool hasBuildConfiguration() const;
|
bool hasBuildConfiguration() const;
|
||||||
@@ -113,7 +113,7 @@ class MiniProjectTargetSelector : public QWidget
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
MiniProjectTargetSelector(QAction *projectAction, QWidget *parent = 0);
|
explicit MiniProjectTargetSelector(QAction *projectAction, QWidget *parent = 0);
|
||||||
void setVisible(bool visible);
|
void setVisible(bool visible);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class RunConfigurationModel : public QAbstractListModel
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
RunConfigurationModel(Target *target, QObject *parent = 0);
|
explicit RunConfigurationModel(Target *target, QObject *parent = 0);
|
||||||
|
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ class ItemLibraryModel: public ItemLibrarySortedModel<ItemLibrarySectionModel> {
|
|||||||
Q_PROPERTY(QString searchText READ searchText WRITE setSearchText NOTIFY searchTextChanged)
|
Q_PROPERTY(QString searchText READ searchText WRITE setSearchText NOTIFY searchTextChanged)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ItemLibraryModel(QScriptEngine *scriptEngine, QObject *parent = 0);
|
explicit ItemLibraryModel(QScriptEngine *scriptEngine, QObject *parent = 0);
|
||||||
~ItemLibraryModel();
|
~ItemLibraryModel();
|
||||||
|
|
||||||
QString searchText() const;
|
QString searchText() const;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ QT_FORWARD_DECLARE_CLASS(QChildEvent)
|
|||||||
class StyledOutputpanePlaceHolder : public Core::OutputPanePlaceHolder
|
class StyledOutputpanePlaceHolder : public Core::OutputPanePlaceHolder
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StyledOutputpanePlaceHolder(Core::IMode *mode, QSplitter *parent = 0);
|
explicit StyledOutputpanePlaceHolder(Core::IMode *mode, QSplitter *parent = 0);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void childEvent(QChildEvent *event);
|
void childEvent(QChildEvent *event);
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ class QmlFileWizard: public Core::StandardFileWizard
|
|||||||
public:
|
public:
|
||||||
typedef Core::BaseFileWizardParameters BaseFileWizardParameters;
|
typedef Core::BaseFileWizardParameters BaseFileWizardParameters;
|
||||||
|
|
||||||
QmlFileWizard(const BaseFileWizardParameters ¶meters,
|
explicit QmlFileWizard(const BaseFileWizardParameters ¶meters,
|
||||||
QObject *parent = 0);
|
QObject *parent = 0);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QString fileContents(const QString &baseName) const;
|
QString fileContents(const QString &baseName) const;
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ class CodeCompletion: public TextEditor::ICompletionCollector
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CodeCompletion(QmlJS::ModelManagerInterface *modelManager, QObject *parent = 0);
|
explicit CodeCompletion(QmlJS::ModelManagerInterface *modelManager, QObject *parent = 0);
|
||||||
virtual ~CodeCompletion();
|
virtual ~CodeCompletion();
|
||||||
|
|
||||||
virtual TextEditor::ITextEditable *editor() const;
|
virtual TextEditor::ITextEditable *editor() const;
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ public:
|
|||||||
\param state The state for which this operation was created.
|
\param state The state for which this operation was created.
|
||||||
\param priority The priority for this operation.
|
\param priority The priority for this operation.
|
||||||
*/
|
*/
|
||||||
QmlJSQuickFixOperation(const QmlJSQuickFixState &state, int priority = -1);
|
explicit QmlJSQuickFixOperation(const QmlJSQuickFixState &state, int priority = -1);
|
||||||
virtual ~QmlJSQuickFixOperation();
|
virtual ~QmlJSQuickFixOperation();
|
||||||
|
|
||||||
virtual void perform();
|
virtual void perform();
|
||||||
|
|||||||
@@ -493,8 +493,8 @@ AST::Node *QmlOutlineModel::nodeForIndex(const QModelIndex &index) const
|
|||||||
|
|
||||||
AST::SourceLocation QmlOutlineModel::sourceLocation(const QModelIndex &index) const
|
AST::SourceLocation QmlOutlineModel::sourceLocation(const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
QTC_ASSERT(index.isValid() && (index.model() == this), return 0);
|
|
||||||
AST::SourceLocation location;
|
AST::SourceLocation location;
|
||||||
|
QTC_ASSERT(index.isValid() && (index.model() == this), return location);
|
||||||
AST::Node *node = nodeForIndex(index);
|
AST::Node *node = nodeForIndex(index);
|
||||||
if (node) {
|
if (node) {
|
||||||
if (AST::UiObjectMember *member = node->uiObjectMemberCast())
|
if (AST::UiObjectMember *member = node->uiObjectMemberCast())
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ class QmlJSDesignDebugClient : public QDeclarativeDebugClient
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
QmlJSDesignDebugClient(QDeclarativeDebugConnection *client,
|
explicit QmlJSDesignDebugClient(QDeclarativeDebugConnection *client,
|
||||||
QObject *parent = 0);
|
QObject *parent = 0);
|
||||||
|
|
||||||
void setSelectedItemsByObjectId(const QList<QDeclarativeDebugObjectReference> &objects);
|
void setSelectedItemsByObjectId(const QList<QDeclarativeDebugObjectReference> &objects);
|
||||||
void reloadViewer();
|
void reloadViewer();
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class ProjectLoadWizard : public QWizard
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
ProjectLoadWizard(Qt4Project *project, QWidget * parent = 0, Qt::WindowFlags flags = 0);
|
explicit ProjectLoadWizard(Qt4Project *project, QWidget * parent = 0, Qt::WindowFlags flags = 0);
|
||||||
virtual ~ProjectLoadWizard();
|
virtual ~ProjectLoadWizard();
|
||||||
virtual void done(int result);
|
virtual void done(int result);
|
||||||
void execDialog();
|
void execDialog();
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ class S60DevicesPreferencePane : public Core::IOptionsPage
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
S60DevicesPreferencePane(S60Devices *devices, QObject *parent = 0);
|
explicit S60DevicesPreferencePane(S60Devices *devices, QObject *parent = 0);
|
||||||
~S60DevicesPreferencePane();
|
~S60DevicesPreferencePane();
|
||||||
|
|
||||||
QString id() const;
|
QString id() const;
|
||||||
|
|||||||
@@ -94,8 +94,8 @@ class S60EmulatorRunConfigurationWidget : public QWidget
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
S60EmulatorRunConfigurationWidget(S60EmulatorRunConfiguration *runConfiguration,
|
explicit S60EmulatorRunConfigurationWidget(S60EmulatorRunConfiguration *runConfiguration,
|
||||||
QWidget *parent = 0);
|
QWidget *parent = 0);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void updateTargetInformation();
|
void updateTargetInformation();
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ public:
|
|||||||
QtVersion(const QString &name, const QString &qmakeCommand,
|
QtVersion(const QString &name, const QString &qmakeCommand,
|
||||||
bool isAutodetected = false, const QString &autodetectionSource = QString());
|
bool isAutodetected = false, const QString &autodetectionSource = QString());
|
||||||
|
|
||||||
QtVersion(const QString &path, bool isAutodetected = false, const QString &autodetectionSource = QString());
|
explicit QtVersion(const QString &path, bool isAutodetected = false, const QString &autodetectionSource = QString());
|
||||||
|
|
||||||
QtVersion(const QString &name, const QString &qmakeCommand, int id,
|
QtVersion(const QString &name, const QString &qmakeCommand, int id,
|
||||||
bool isAutodetected = false, const QString &autodetectionSource = QString());
|
bool isAutodetected = false, const QString &autodetectionSource = QString());
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ class SubversionSubmitEditor : public VCSBase::VCSBaseSubmitEditor
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
SubversionSubmitEditor(const VCSBase::VCSBaseSubmitEditorParameters *parameters,
|
explicit SubversionSubmitEditor(const VCSBase::VCSBaseSubmitEditorParameters *parameters,
|
||||||
QWidget *parentWidget = 0);
|
QWidget *parentWidget = 0);
|
||||||
|
|
||||||
static QString fileFromStatusLine(const QString &statusLine);
|
static QString fileFromStatusLine(const QString &statusLine);
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public:
|
|||||||
UnCollapseAll = 4
|
UnCollapseAll = 4
|
||||||
};
|
};
|
||||||
|
|
||||||
TextEditorActionHandler(const char *context, uint optionalActions = None);
|
explicit TextEditorActionHandler(const char *context, uint optionalActions = None);
|
||||||
void setupActions(BaseTextEditor *editor);
|
void setupActions(BaseTextEditor *editor);
|
||||||
|
|
||||||
void initializeActions();
|
void initializeActions();
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ class CheckoutProgressWizardPage;
|
|||||||
class CheckoutWizardDialog : public Utils::Wizard {
|
class CheckoutWizardDialog : public Utils::Wizard {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
CheckoutWizardDialog(const QList<QWizardPage *> ¶meterPages,
|
explicit CheckoutWizardDialog(const QList<QWizardPage *> ¶meterPages,
|
||||||
QWidget *parent = 0);
|
QWidget *parent = 0);
|
||||||
|
|
||||||
void start(const QSharedPointer<AbstractCheckoutJob> &job);
|
void start(const QSharedPointer<AbstractCheckoutJob> &job);
|
||||||
|
|
||||||
|
|||||||
@@ -109,8 +109,8 @@ class BookmarkWidget : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BookmarkWidget(BookmarkManager *manager, QWidget *parent = 0,
|
explicit BookmarkWidget(BookmarkManager *manager, QWidget *parent = 0,
|
||||||
bool showButtons = true);
|
bool showButtons = true);
|
||||||
~BookmarkWidget();
|
~BookmarkWidget();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ class ResourceModel : public QAbstractItemModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ResourceModel(const ResourceFile &resource_file, QObject *parent = 0);
|
explicit ResourceModel(const ResourceFile &resource_file, QObject *parent = 0);
|
||||||
|
|
||||||
QModelIndex index(int row, int column,
|
QModelIndex index(int row, int column,
|
||||||
const QModelIndex &parent = QModelIndex()) const;
|
const QModelIndex &parent = QModelIndex()) const;
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public:
|
|||||||
LanguageProperty
|
LanguageProperty
|
||||||
};
|
};
|
||||||
|
|
||||||
ResourceView(QUndoStack *history, QWidget *parent = 0);
|
explicit ResourceView(QUndoStack *history, QWidget *parent = 0);
|
||||||
~ResourceView();
|
~ResourceView();
|
||||||
|
|
||||||
bool load(const QString &fileName);
|
bool load(const QString &fileName);
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class QtLocalPeer : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QtLocalPeer(QObject *parent = 0, const QString &appId = QString());
|
explicit QtLocalPeer(QObject *parent = 0, const QString &appId = QString());
|
||||||
bool isClient();
|
bool isClient();
|
||||||
bool sendMessage(const QString &message, int timeout);
|
bool sendMessage(const QString &message, int timeout);
|
||||||
QString applicationId() const
|
QString applicationId() const
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ public:
|
|||||||
QtSingleApplication(const QString &id, int &argc, char **argv);
|
QtSingleApplication(const QString &id, int &argc, char **argv);
|
||||||
QtSingleApplication(int &argc, char **argv, Type type);
|
QtSingleApplication(int &argc, char **argv, Type type);
|
||||||
#if defined(Q_WS_X11)
|
#if defined(Q_WS_X11)
|
||||||
QtSingleApplication(Display *dpy, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0);
|
explicit QtSingleApplication(Display *dpy, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0);
|
||||||
QtSingleApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0);
|
QtSingleApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class QDeclarativeViewer
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QDeclarativeViewer(QWidget *parent = 0, Qt::WindowFlags flags = 0);
|
explicit QDeclarativeViewer(QWidget *parent = 0, Qt::WindowFlags flags = 0);
|
||||||
~QDeclarativeViewer();
|
~QDeclarativeViewer();
|
||||||
|
|
||||||
static void registerTypes();
|
static void registerTypes();
|
||||||
|
|||||||
Reference in New Issue
Block a user