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)
|
||||
|
||||
public:
|
||||
explicit Wizard(QWidget *parent = nullptr, Qt::WindowFlags flags = nullptr);
|
||||
explicit Wizard(QWidget *parent = nullptr, Qt::WindowFlags flags = {});
|
||||
~Wizard() override;
|
||||
|
||||
bool isAutomaticProgressCreationEnabled() const;
|
||||
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
SearchInterface &m_searchInterface,
|
||||
RefactoringClient &m_refactoringClient);
|
||||
|
||||
void findAll(const QString &queryText, Core::FindFlags findFlags = nullptr) override;
|
||||
void findAll(const QString &queryText, Core::FindFlags findFlags = {}) override;
|
||||
|
||||
void handleQueryOrExampleTextChanged();
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ public:
|
||||
|
||||
QFile::Permissions permissions;
|
||||
|
||||
FileStatus(Status _status = Unknown, QFile::Permissions perm = nullptr)
|
||||
FileStatus(Status _status = Unknown, QFile::Permissions perm = {})
|
||||
: status(_status), permissions(perm)
|
||||
{ }
|
||||
};
|
||||
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
static IEditor *activateEditor(EditorView *view, IEditor *editor,
|
||||
EditorManager::OpenEditorFlags flags = EditorManager::NoFlags);
|
||||
static IEditor *activateEditorForDocument(EditorView *view, IDocument *document,
|
||||
EditorManager::OpenEditorFlags flags = nullptr);
|
||||
EditorManager::OpenEditorFlags flags = {});
|
||||
static bool activateEditorForEntry(EditorView *view, DocumentModel::Entry *entry,
|
||||
EditorManager::OpenEditorFlags flags = EditorManager::NoFlags);
|
||||
/* closes the document if there is no other editor on the document visible */
|
||||
|
||||
@@ -160,7 +160,7 @@ public:
|
||||
* 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
|
||||
|
||||
@@ -52,9 +52,9 @@ public:
|
||||
static ProgressManager *instance();
|
||||
|
||||
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,
|
||||
Id type, int expectedSeconds, ProgressFlags flags = nullptr);
|
||||
Id type, int expectedSeconds, ProgressFlags flags = {});
|
||||
static void setApplicationLabel(const QString &text);
|
||||
|
||||
public slots:
|
||||
|
||||
@@ -592,7 +592,7 @@ signals:
|
||||
void tooltipOverrideRequested(TextEditor::TextEditorWidget *widget,
|
||||
const QPoint &globalPos, int position, bool *handled);
|
||||
void tooltipRequested(const QPoint &globalPos, int position);
|
||||
void activateEditor(Core::EditorManager::OpenEditorFlags flags = nullptr);
|
||||
void activateEditor(Core::EditorManager::OpenEditorFlags flags = {});
|
||||
|
||||
protected:
|
||||
virtual void slotCursorPositionChanged(); // Used in VcsBase
|
||||
|
||||
Reference in New Issue
Block a user