forked from qt-creator/qt-creator
Qmake: Handle QFlags deprecation
Change-Id: I2565ce0b1b10d4cb663dc6ad2721b717ce48c17d Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -118,7 +118,7 @@ bool ClangQueryProjectsFindFilter::showSearchTermInput() const
|
||||
|
||||
Core::FindFlags ClangQueryProjectsFindFilter::supportedFindFlags() const
|
||||
{
|
||||
return nullptr;
|
||||
return {};
|
||||
}
|
||||
|
||||
void ClangQueryProjectsFindFilter::setProjectParts(const std::vector<CppTools::ProjectPart::Ptr> &projectParts)
|
||||
|
||||
@@ -120,7 +120,7 @@ QString LibraryDetailsController::libraryPlatformFilter() const
|
||||
void LibraryDetailsController::updateGui()
|
||||
{
|
||||
// read values from gui
|
||||
m_platforms = nullptr;
|
||||
m_platforms = {};
|
||||
if (libraryDetailsWidget()->linCheckBox->isChecked())
|
||||
m_platforms |= AddLibraryWizard::LinuxPlatform;
|
||||
if (libraryDetailsWidget()->macCheckBox->isChecked())
|
||||
@@ -448,7 +448,7 @@ static QString generateLibsSnippet(AddLibraryWizard::Platforms platforms,
|
||||
| AddLibraryWizard::WindowsMSVCPlatform);
|
||||
|
||||
AddLibraryWizard::Platforms diffPlatforms = platforms ^ commonPlatforms;
|
||||
AddLibraryWizard::Platforms generatedPlatforms = nullptr;
|
||||
AddLibraryWizard::Platforms generatedPlatforms;
|
||||
|
||||
QString snippetMessage;
|
||||
QTextStream str(&snippetMessage);
|
||||
@@ -534,7 +534,7 @@ static QString generatePreTargetDepsSnippet(AddLibraryWizard::Platforms platform
|
||||
QString snippetMessage;
|
||||
QTextStream str(&snippetMessage);
|
||||
str << "\n";
|
||||
AddLibraryWizard::Platforms generatedPlatforms = nullptr;
|
||||
AddLibraryWizard::Platforms generatedPlatforms;
|
||||
AddLibraryWizard::Platforms windowsPlatforms = platforms
|
||||
& (AddLibraryWizard::WindowsMinGWPlatform | AddLibraryWizard::WindowsMSVCPlatform);
|
||||
AddLibraryWizard::Platforms commonPlatforms = platforms;
|
||||
|
||||
@@ -520,7 +520,7 @@ void QmakeProjectManagerPlugin::testMakefileParser()
|
||||
|
||||
QCOMPARE(Utils::QtcProcess::splitArgs(parser.unparsedArguments()),
|
||||
Utils::QtcProcess::splitArgs(unparsedArguments));
|
||||
QCOMPARE(parser.effectiveBuildConfig(nullptr), effectiveBuildConfig);
|
||||
QCOMPARE(parser.effectiveBuildConfig({}), effectiveBuildConfig);
|
||||
|
||||
const QMakeStepConfig qmsc = parser.config();
|
||||
QCOMPARE(qmsc.archConfig, static_cast<QMakeStepConfig::TargetArchConfig>(archConfig));
|
||||
|
||||
@@ -138,7 +138,7 @@ void CostDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
|
||||
|
||||
// Draw text.
|
||||
QLocale loc = opt.locale;
|
||||
loc.setNumberOptions(nullptr);
|
||||
loc.setNumberOptions({});
|
||||
const QString text = d->displayText(index, loc);
|
||||
const QBrush &textBrush = (option.state & QStyle::State_Selected ? opt.palette.highlightedText() : opt.palette.text());
|
||||
painter->setBrush(Qt::NoBrush);
|
||||
|
||||
Reference in New Issue
Block a user