mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-09 00:35:20 -05:00
show version information on std::cout on Windows
This commit is contained in:
parent
8e438e6273
commit
b85d42cd6f
@ -119,17 +119,8 @@ typedef SInt32 SRefCon;
|
|||||||
void version( )
|
void version( )
|
||||||
{
|
{
|
||||||
const QString msg = QStringLiteral( "QGIS %1 '%2' (%3)\n" ).arg( VERSION ).arg( RELEASE_NAME ).arg( QGSVERSION );
|
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();
|
std::cout << msg.toStdString();
|
||||||
#endif
|
}
|
||||||
|
|
||||||
} // version()
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Print usage text
|
* Print usage text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user