Add gui resize depending on screen size

Init of request
https://qelectrotech.org/bugtracker/view.php?id=195
This is a start will have to be adjusted further.
This commit is contained in:
Simon De Backer
2020-07-21 20:29:05 +02:00
parent 3a08e60856
commit 03425bcb5b
3 changed files with 104 additions and 1 deletions

28
sources/machine_info.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef MACHINE_INFO_H
#define MACHINE_INFO_H
#include <QObject>
/**
@brief The Machine_info class
This class hold information from your PC.
*/
class Machine_info : public QObject
{
Q_OBJECT
public:
explicit Machine_info(QObject *parent = nullptr);
int32_t get_max_screen_width();
int32_t get_max_screen_height();
signals:
private:
void init_get_Screen_info();
int32_t Max_screen_width;
int32_t Max_screen_height;
};
#endif // MACHINE_INFO_H