mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-26 20:59:58 +01:00
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:
28
sources/machine_info.h
Normal file
28
sources/machine_info.h
Normal 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
|
||||
Reference in New Issue
Block a user