Changeset View
Changeset View
Standalone View
Standalone View
src/qt/platformstyle.cpp
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | const PlatformStyle *PlatformStyle::instantiate(const QString &platformId) { | ||||
for (unsigned x = 0; x < platform_styles_count; ++x) { | for (unsigned x = 0; x < platform_styles_count; ++x) { | ||||
if (platformId == platform_styles[x].platformId) { | if (platformId == platform_styles[x].platformId) { | ||||
return new PlatformStyle(platform_styles[x].platformId, | return new PlatformStyle(platform_styles[x].platformId, | ||||
platform_styles[x].imagesOnButtons, | platform_styles[x].imagesOnButtons, | ||||
platform_styles[x].colorizeIcons, | platform_styles[x].colorizeIcons, | ||||
platform_styles[x].useExtraSpacing); | platform_styles[x].useExtraSpacing); | ||||
} | } | ||||
} | } | ||||
return 0; | return nullptr; | ||||
} | } |