MCPcopy Create free account
hub / github.com/ElementsProject/elements / setupPlatformStyle

Method setupPlatformStyle

src/qt/bitcoin.cpp:229–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void BitcoinApplication::setupPlatformStyle()
230{
231 // UI per-platform customization
232 // This must be done inside the BitcoinApplication constructor, or after it, because
233 // PlatformStyle::instantiate requires a QApplication
234 std::string platformName;
235 platformName = gArgs.GetArg("-uiplatform", BitcoinGUI::DEFAULT_UIPLATFORM);
236 platformStyle = PlatformStyle::instantiate(QString::fromStdString(platformName));
237 if (!platformStyle) // Fall back to "other" if specified name not found
238 platformStyle = PlatformStyle::instantiate("other");
239 assert(platformStyle);
240}
241
242BitcoinApplication::~BitcoinApplication()
243{

Callers 2

GuiMainFunction · 0.80
appTestsMethod · 0.80

Calls 1

GetArgMethod · 0.80

Tested by 1

appTestsMethod · 0.64