Commit 7c69efaa authored by Jan Möbius's avatar Jan Möbius

Show os info in about widget

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10643 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6b4f52f0
......@@ -167,19 +167,19 @@ void CoreWidget::showAboutWidget( ) {
#ifdef WIN32
QSettings settings("HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\CentralProcessor", QSettings::NativeFormat);
QStringList cpus = settings.childGroups();
if ( cpus.size() != 0 ) {
aboutWidget_->OpenFlipperAbout->append(tr("CPU vendor:\t\t ") +
settings.value( cpus[0]+"/VendorIdentifier", "Unknown" ).toString() );
aboutWidget_->OpenFlipperAbout->append(tr("CPU model:\t\t ") +
settings.value( cpus[0]+"/ProcessorNameString", "Unknown" ).toString() );
aboutWidget_->OpenFlipperAbout->append(tr("CPU identifier:\t\t ") +
settings.value( cpus[0]+"/Identifier", "Unknown" ).toString() );
aboutWidget_->OpenFlipperAbout->append(tr("CPU Speed:\t\t ") +
settings.value( cpus[0]+"/~MHz", "Unknown" ).toString()+ " MHz" );
QSettings registryCPU("HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\CentralProcessor", QSettings::NativeFormat);
QStringList cpus = registryCPU.childGroups();
if ( cpus.size() != 0 ) {
aboutWidget_->OpenFlipperAbout->append(tr("CPU vendor:\t\t ") +
registryCPU.value( cpus[0]+"/VendorIdentifier", "Unknown" ).toString() );
aboutWidget_->OpenFlipperAbout->append(tr("CPU model:\t\t ") +
registryCPU.value( cpus[0]+"/ProcessorNameString", "Unknown" ).toString() );
aboutWidget_->OpenFlipperAbout->append(tr("CPU identifier:\t\t ") +
registryCPU.value( cpus[0]+"/Identifier", "Unknown" ).toString() );
aboutWidget_->OpenFlipperAbout->append(tr("CPU Speed:\t\t ") +
registryCPU.value( cpus[0]+"/~MHz", "Unknown" ).toString()+ " MHz" );
aboutWidget_->OpenFlipperAbout->append("CPU Cores:\t\t " + QString::number(cpus.size()));
......@@ -246,7 +246,26 @@ void CoreWidget::showAboutWidget( ) {
#endif
// =====================================================================================
// OS info
// =====================================================================================
aboutWidget_->OpenFlipperAbout->append("\n");
aboutWidget_->OpenFlipperAbout->setCurrentFont(boldFont);
aboutWidget_->OpenFlipperAbout->append(tr("Operating System Info:"));
aboutWidget_->OpenFlipperAbout->setCurrentFont(standardFont);
#ifdef WIN32
QSettings registryOS("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", QSettings::NativeFormat);
aboutWidget_->OpenFlipperAbout->append(tr("Product Name:\t\t ") +
registryOS.value( "ProductName", "Unknown" ).toString() );
aboutWidget_->OpenFlipperAbout->append(tr("Current Version:\t\t ") +
registryOS.value( "CurrentVersion", "Unknown" ).toString() );
#elif defined ARCH_DARWIN
aboutWidget_->OpenFlipperAbout->append(tr("Not available for this platform (MacOS)"));
#else
aboutWidget_->OpenFlipperAbout->append(tr("Not available for this platform (Linux)"));
#endif
// =====================================================================================
// OpenGL Renderer/Vendor and version info
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment