| 227 | } |
| 228 | |
| 229 | void 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 | |
| 242 | BitcoinApplication::~BitcoinApplication() |
| 243 | { |