Project properties dialog launch a little more faster (especially on windows)

Instead of build machine_info class which take time, only to get the max
width and height of screens, call  of methods
Machine_info::i_max_screen_width() and
Machine_info::i_max_screen_height() are now static and compute only
this.
The project properties dialog is now faster because don't wait the end
build of machine_info.
This commit is contained in:
Joshua Claveau
2021-03-21 19:01:54 +01:00
parent 6cf79e6e75
commit 1b6cf7d5f3
3 changed files with 37 additions and 9 deletions

View File

@@ -30,8 +30,8 @@ class Machine_info : public QObject
Q_OBJECT
public:
explicit Machine_info(QObject *parent = nullptr);
int32_t i_max_screen_width();
int32_t i_max_screen_height();
static int32_t i_max_screen_width();
static int32_t i_max_screen_height();
QString compilation_info();
void send_info_to_debug();