blob: 2dc604c9c30c5083fbe83eaebc7e0f476823a2db (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget> // for Qt5
#include <QDebug>
#include <QIcon>
namespace Ui {
class Widget;
}
class AdvancedScreen;
class AdvancedOutput;
class Widget : public QWidget
{
Q_OBJECT
public:
explicit Widget(QWidget *parent = nullptr);
~Widget();
protected:
virtual void showEvent(QShowEvent *event) override;
virtual void hideEvent(QHideEvent *event) override;
private slots:
void comboBold(int index);
private:
Ui::Widget *_ui;
bool _ignoreResolutionChange;
QVector<AdvancedScreen*> _advancedScreens;
QVector<AdvancedOutput*> _advancedOutput;
QList<const QScreen *> _qtScreens;
bool _popupCount;
QIcon _iProjector, _iScreen;
int _lastScreenCount;
bool _addEventDbus;
bool _addEventOther;
void initControls(bool jumpToTab = false);
void connectButtons();
bool keepResolution();
void updateWindowPlacement(bool force = false);
};
#endif // WIDGET_H
|