Skip to content

Commit

Permalink
Use default QFlags construction instead of zero
Browse files Browse the repository at this point in the history
  • Loading branch information
YakoYakoYokuYoku committed Dec 14, 2021
1 parent b518022 commit 5a18f12
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Engine/FileSystemModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,11 @@ Qt::ItemFlags
FileSystemModel::flags(const QModelIndex &index) const
{
if ( !index.isValid() ) {
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
return Qt::ItemFlags();
#else
return 0;
#endif
}

// Our model is read only.
Expand Down
8 changes: 8 additions & 0 deletions Gui/Label.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,18 @@ class Label

Label(const QString &text,
QWidget *parent = 0,
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Qt::WindowFlags f = Qt::WindowFlags());
#else
Qt::WindowFlags f = 0);
#endif

Label(QWidget *parent = 0,
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Qt::WindowFlags f = Qt::WindowFlags());
#else
Qt::WindowFlags f = 0);
#endif

bool getAltered() const;

Expand Down

0 comments on commit 5a18f12

Please sign in to comment.