Files
RRJClient/Core/screenchecker.h
2024-10-04 10:23:53 +03:00

40 lines
789 B
C++

#ifndef SCREENCHECKER_H
#define SCREENCHECKER_H
#include "dataparser.h"
#include <QObject>
#include <QScreen>
#include <QGuiApplication>
#include <QDebug>
#include <QPushButton>
#include <QHBoxLayout>
#include <QToolButton>
#include <QLabel>
class ScreenChecker : public QObject
{
Q_OBJECT
public:
explicit ScreenChecker(QWidget *widget,DataParser *dataParser, QHBoxLayout *layout,QObject *parent = nullptr);
~ScreenChecker();
void check();
QString getScreenCount() const;
private:
QWidget *mainWidget;
DataParser *dataParser;
QWidget *widget;
QHBoxLayout *layout;
qint64 screenCount;
QList<QScreen *> screens;
QList<QToolButton *> buttons;
QList<QPushButton *> labels;
void updateDisplayData();
};
#endif // SCREENCHECKER_H