Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.cpp
Show First 20 Lines • Show All 420 Lines • ▼ Show 20 Lines | void openDebugLogfile() { | ||||
/* Open debug.log with the associated application */ | /* Open debug.log with the associated application */ | ||||
if (fs::exists(pathDebug)) { | if (fs::exists(pathDebug)) { | ||||
QDesktopServices::openUrl( | QDesktopServices::openUrl( | ||||
QUrl::fromLocalFile(boostPathToQString(pathDebug))); | QUrl::fromLocalFile(boostPathToQString(pathDebug))); | ||||
} | } | ||||
} | } | ||||
bool openBitcoinConf() { | |||||
fs::path pathConfig = GetConfigFile(BITCOIN_CONF_FILENAME); | |||||
/* Create the file */ | |||||
fs::ofstream configFile(pathConfig, std::ios_base::app); | |||||
if (!configFile.good()) { | |||||
return false; | |||||
} | |||||
configFile.close(); | |||||
/* Open bitcoin.conf with the associated application */ | |||||
return QDesktopServices::openUrl( | |||||
QUrl::fromLocalFile(boostPathToQString(pathConfig))); | |||||
} | |||||
void SubstituteFonts(const QString &language) { | void SubstituteFonts(const QString &language) { | ||||
#if defined(Q_OS_MAC) | #if defined(Q_OS_MAC) | ||||
// Background: | // Background: | ||||
// OSX's default font changed in 10.9 and Qt is unable to find it with its | // OSX's default font changed in 10.9 and Qt is unable to find it with its | ||||
// usual fallback methods when building against the 10.7 sdk or lower. | // usual fallback methods when building against the 10.7 sdk or lower. | ||||
// The 10.8 SDK added a function to let it find the correct fallback font. | // The 10.8 SDK added a function to let it find the correct fallback font. | ||||
// If this fallback is not properly loaded, some characters may fail to | // If this fallback is not properly loaded, some characters may fail to | ||||
// render correctly. | // render correctly. | ||||
▲ Show 20 Lines • Show All 585 Lines • Show Last 20 Lines |