Changeset View
Changeset View
Standalone View
Standalone View
src/qt/utilitydialog.cpp
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | |||||
HelpMessageDialog::~HelpMessageDialog() { | HelpMessageDialog::~HelpMessageDialog() { | ||||
delete ui; | delete ui; | ||||
} | } | ||||
void HelpMessageDialog::printToConsole() { | void HelpMessageDialog::printToConsole() { | ||||
// On other operating systems, the expected action is to print the message | // On other operating systems, the expected action is to print the message | ||||
// to the console. | // to the console. | ||||
fprintf(stdout, "%s\n", qPrintable(text)); | tfm::format(std::cout, "%s\n", qPrintable(text)); | ||||
} | } | ||||
void HelpMessageDialog::showOrPrint() { | void HelpMessageDialog::showOrPrint() { | ||||
#if defined(WIN32) | #if defined(WIN32) | ||||
// On Windows, show a message box, as there is no stderr/stdout in windowed | // On Windows, show a message box, as there is no stderr/stdout in windowed | ||||
// applications | // applications | ||||
exec(); | exec(); | ||||
#else | #else | ||||
Show All 39 Lines |