From 84a2a25fa8720a7cecec0aa9490311a11eaf3352 Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Fri, 14 Aug 2020 17:03:08 +0200 Subject: [PATCH] Mod get Screen info get cpu info should not collect screen info --- sources/machine_info.cpp | 49 ++++++++++------------------------------ 1 file changed, 12 insertions(+), 37 deletions(-) diff --git a/sources/machine_info.cpp b/sources/machine_info.cpp index e949f6cdc..7a237c2af 100644 --- a/sources/machine_info.cpp +++ b/sources/machine_info.cpp @@ -113,35 +113,19 @@ void Machine_info::send_info_to_debug() void Machine_info::init_get_Screen_info() { const auto screens = qApp->screens(); - for (int ii = 0; ii < screens.count(); ++ii) - { - - if( - pc.screen.Max_width - < + pc.screen.count=screens.count(); + for (int ii = 0; ii < pc.screen.count; ++ii) { + pc.screen.width[ii]= screens[ii]->geometry().width() - * - screens[ii]->devicePixelRatio() - ) - { - pc.screen.Max_width = - screens[ii]->geometry().width() - * - screens[ii]->devicePixelRatio(); - } - if( - pc.screen.Max_height - < + * screens[ii]->devicePixelRatio(); + if(pc.screen.Max_widthgeometry().height() - * - screens[ii]->devicePixelRatio() - ) - { - pc.screen.Max_height = - screens[ii]->geometry().height() - * - screens[ii]->devicePixelRatio(); - } + * screens[ii]->devicePixelRatio(); + if(pc.screen.Max_heightscreens(); - pc.screen.count=screens.count(); - for (int ii = 0; ii < pc.screen.count; ++ii) { - pc.screen.width[ii]= - screens[ii]->geometry().width() - * screens[ii]->devicePixelRatio(); - pc.screen.height[ii]= - screens[ii]->geometry().height() - * screens[ii]->devicePixelRatio(); - } } /** @@ -217,6 +191,7 @@ void Machine_info::init_get_cpu_info_linux() pc.gpu.info=QString(linuxGPUOutput.toLocal8Bit().constData()); pc.gpu.RAM="@ToDo"; } + /** @brief Machine_info::init_get_cpu_info_winnt */