Make detailed version information available to command line (#257)

- Moved detailed version information from ReportBugDialog to Version::details()
- Added QPA Platform information to verbose version information
- Added Qt version to detailed version information
- Added `-V` command line option to glabels-qt and glabels-batch-qt
This commit is contained in:
Jaye Evins
2025-12-03 20:43:37 -05:00
committed by GitHub
parent 98b3e32bfd
commit 44a10fc796
9 changed files with 105 additions and 24 deletions
+9
View File
@@ -142,11 +142,20 @@ int main( int argc, char **argv )
parser.addOptions( options );
parser.addHelpOption();
parser.addVersionOption();
parser.addOption( { { "V", "Version" }, QCoreApplication::translate( "main", "More detailed version information." ) } );
parser.addPositionalArgument( "file",
QCoreApplication::translate( "main", "gLabels project file to print." ),
"file" );
parser.process( app );
// Handle verbose version option
if ( parser.isSet( "Version" ) )
{
qInfo().noquote() << glabels::model::Version::details();
return 0;
}
//
// Parse variable definitions from command line, if any
//