forked from qt-creator/qt-creator
Core/Utils: Use {} instead of nullptr for flags
Deprecated in current 5.15 Change-Id: I4222c67f2da3919e3476178f52dae909327431d4 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -43,7 +43,7 @@ class QTCREATOR_UTILS_EXPORT Wizard : public QWizard
|
|||||||
Q_PROPERTY(bool automaticProgressCreationEnabled READ isAutomaticProgressCreationEnabled WRITE setAutomaticProgressCreationEnabled)
|
Q_PROPERTY(bool automaticProgressCreationEnabled READ isAutomaticProgressCreationEnabled WRITE setAutomaticProgressCreationEnabled)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Wizard(QWidget *parent = nullptr, Qt::WindowFlags flags = nullptr);
|
explicit Wizard(QWidget *parent = nullptr, Qt::WindowFlags flags = {});
|
||||||
~Wizard() override;
|
~Wizard() override;
|
||||||
|
|
||||||
bool isAutomaticProgressCreationEnabled() const;
|
bool isAutomaticProgressCreationEnabled() const;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public:
|
|||||||
SearchInterface &m_searchInterface,
|
SearchInterface &m_searchInterface,
|
||||||
RefactoringClient &m_refactoringClient);
|
RefactoringClient &m_refactoringClient);
|
||||||
|
|
||||||
void findAll(const QString &queryText, Core::FindFlags findFlags = nullptr) override;
|
void findAll(const QString &queryText, Core::FindFlags findFlags = {}) override;
|
||||||
|
|
||||||
void handleQueryOrExampleTextChanged();
|
void handleQueryOrExampleTextChanged();
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ public:
|
|||||||
|
|
||||||
QFile::Permissions permissions;
|
QFile::Permissions permissions;
|
||||||
|
|
||||||
FileStatus(Status _status = Unknown, QFile::Permissions perm = nullptr)
|
FileStatus(Status _status = Unknown, QFile::Permissions perm = {})
|
||||||
: status(_status), permissions(perm)
|
: status(_status), permissions(perm)
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ public:
|
|||||||
static IEditor *activateEditor(EditorView *view, IEditor *editor,
|
static IEditor *activateEditor(EditorView *view, IEditor *editor,
|
||||||
EditorManager::OpenEditorFlags flags = EditorManager::NoFlags);
|
EditorManager::OpenEditorFlags flags = EditorManager::NoFlags);
|
||||||
static IEditor *activateEditorForDocument(EditorView *view, IDocument *document,
|
static IEditor *activateEditorForDocument(EditorView *view, IDocument *document,
|
||||||
EditorManager::OpenEditorFlags flags = nullptr);
|
EditorManager::OpenEditorFlags flags = {});
|
||||||
static bool activateEditorForEntry(EditorView *view, DocumentModel::Entry *entry,
|
static bool activateEditorForEntry(EditorView *view, DocumentModel::Entry *entry,
|
||||||
EditorManager::OpenEditorFlags flags = EditorManager::NoFlags);
|
EditorManager::OpenEditorFlags flags = EditorManager::NoFlags);
|
||||||
/* closes the document if there is no other editor on the document visible */
|
/* closes the document if there is no other editor on the document visible */
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ public:
|
|||||||
* Returns settings.
|
* Returns settings.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
virtual SettingsFlags settingsFlags() const { return nullptr; }
|
virtual SettingsFlags settingsFlags() const { return {}; }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Called after a file has been added to a project If the version control
|
* Called after a file has been added to a project If the version control
|
||||||
|
|||||||
@@ -52,9 +52,9 @@ public:
|
|||||||
static ProgressManager *instance();
|
static ProgressManager *instance();
|
||||||
|
|
||||||
static FutureProgress *addTask(const QFuture<void> &future, const QString &title,
|
static FutureProgress *addTask(const QFuture<void> &future, const QString &title,
|
||||||
Id type, ProgressFlags flags = nullptr);
|
Id type, ProgressFlags flags = {});
|
||||||
static FutureProgress *addTimedTask(const QFutureInterface<void> &fi, const QString &title,
|
static FutureProgress *addTimedTask(const QFutureInterface<void> &fi, const QString &title,
|
||||||
Id type, int expectedSeconds, ProgressFlags flags = nullptr);
|
Id type, int expectedSeconds, ProgressFlags flags = {});
|
||||||
static void setApplicationLabel(const QString &text);
|
static void setApplicationLabel(const QString &text);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@@ -592,7 +592,7 @@ signals:
|
|||||||
void tooltipOverrideRequested(TextEditor::TextEditorWidget *widget,
|
void tooltipOverrideRequested(TextEditor::TextEditorWidget *widget,
|
||||||
const QPoint &globalPos, int position, bool *handled);
|
const QPoint &globalPos, int position, bool *handled);
|
||||||
void tooltipRequested(const QPoint &globalPos, int position);
|
void tooltipRequested(const QPoint &globalPos, int position);
|
||||||
void activateEditor(Core::EditorManager::OpenEditorFlags flags = nullptr);
|
void activateEditor(Core::EditorManager::OpenEditorFlags flags = {});
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void slotCursorPositionChanged(); // Used in VcsBase
|
virtual void slotCursorPositionChanged(); // Used in VcsBase
|
||||||
|
|||||||
Reference in New Issue
Block a user