show version information on std::cout on Windows

This commit is contained in:
Jorge Gustavo Rocha 2019-06-14 14:31:01 +01:00
parent 8e438e6273
commit b85d42cd6f

View File

@ -119,17 +119,8 @@ typedef SInt32 SRefCon;
void version( )
{
const QString msg = QStringLiteral( "QGIS %1 '%2' (%3)\n" ).arg( VERSION ).arg( RELEASE_NAME ).arg( QGSVERSION );
#ifdef Q_OS_WIN
MessageBox( nullptr,
msg,
"QGIS version",
MB_OK );
#else
std::cout << msg.toStdString();
#endif
} // version()
}
/**
* Print usage text