1 #pragma once
2 
3 #include "dspdfviewer.h"
4 
5 /** Test driver
6  *
7  * If it detects two screens, it will verify that the windows switch to the
8  * specified positions.
9  * If running on single-screen, the commands will be executed without verification,
10  * just to make sure the code doesn't segfault or similar.
11  *
12  * Rinse and repeat 3 times.
13  *
14  */
15 class SwapScreensAndCheckAlign: public QObject {
16 	Q_OBJECT
17 
18 	DSPDFViewer& dspdfviewer;
19 	QRect screenPrimary;
20 	QRect screenSecondary;
21 	bool verify;
22 public:
23 	SwapScreensAndCheckAlign(DSPDFViewer& app);
24 signals:
25 	void screenSwapRequested();
26 	void quitRequested();
27 public slots:
28 	void checkStartPositions();
29 	void checkAfterFirstSwap();
30 	void checkAfterSwapBack();
31 };
32