File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -113,19 +113,15 @@ typedef SInt32 SRefCon;
113
113
*/
114
114
void version ( )
115
115
{
116
- QStringList msg;
117
-
118
- msg
119
- << QStringLiteral ( " QGIS " ) << VERSION << QStringLiteral ( " '" ) << RELEASE_NAME << QStringLiteral ( " ' (" )
120
- << QGSVERSION << QStringLiteral ( " )\n " );
116
+ const QString msg = QStringLiteral ( " QGIS %1 '%2' (%3)\n " ).arg ( VERSION ).arg ( RELEASE_NAME ).arg ( QGSVERSION );
121
117
122
118
#ifdef Q_OS_WIN
123
119
MessageBox ( nullptr ,
124
- msg. join ( QString () ). toLocal8Bit (). constData () ,
120
+ msg,
125
121
" QGIS version" ,
126
122
MB_OK );
127
123
#else
128
- std::cerr << msg.join ( QString () ). toLocal8Bit (). constData ();
124
+ std::cerr << msg.toStdString ();
129
125
#endif
130
126
131
127
} // version()
@@ -141,6 +137,7 @@ void usage( const QString &appName )
141
137
<< QStringLiteral ( " QGIS is a user friendly Open Source Geographic Information System.\n " )
142
138
<< QStringLiteral ( " Usage: " ) << appName << QStringLiteral ( " [OPTION] [FILE]\n " )
143
139
<< QStringLiteral ( " OPTION:\n " )
140
+ << QStringLiteral ( " \t [--version]\t display version information and exit\n " )
144
141
<< QStringLiteral ( " \t [--snapshot filename]\t emit snapshot of loaded datasets to given file\n " )
145
142
<< QStringLiteral ( " \t [--width width]\t width of snapshot to emit\n " )
146
143
<< QStringLiteral ( " \t [--height height]\t height of snapshot to emit\n " )
You can’t perform that action at this time.
0 commit comments