aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/libLumina/test/main.cpp25
1 files changed, 15 insertions, 10 deletions
diff --git a/src-qt5/core/libLumina/test/main.cpp b/src-qt5/core/libLumina/test/main.cpp
index e352e609..5c6fa67f 100644
--- a/src-qt5/core/libLumina/test/main.cpp
+++ b/src-qt5/core/libLumina/test/main.cpp
@@ -1,21 +1,26 @@
-
-#include "../LuminaRandR.h"
#include <QDebug>
#include <QApplication>
+#include "../LuminaRandR.h"
+
+
int main(int argc, char** argv){
- QApplication A(argc, argv);
+ QApplication A(argc, argv);
qDebug() << "Load Monitor Device Information";
OutputDeviceList devList;
qDebug() << "Detected Information:";
for(int i=0; i<devList.length(); i++){
- qDebug() << "["+devList[i].ID()+"]";
- qDebug() << " - isEnabled:" << devList[i].isEnabled();
- qDebug() << " - isPrimary:" << devList[i].isPrimary();
- qDebug() << " - isAutomatic:" << devList[i].isAutomatic();
- qDebug() << " - Current Geometry:" << devList[i].currentGeometry();
- qDebug() << " - Physical Size (mm):" << devList[i].physicalSizeMM();
- qDebug() << " - Available Resolutions:" << devList[i].availableResolutions();
+ qDebug() << "["+devList.at(i)->ID()+"]";
+ qDebug() << " - isEnabled:" << devList.at(i)->isEnabled();
+ qDebug() << " - isPrimary:" << devList.at(i)->isPrimary();
+ qDebug() << " - isAutomatic:" << devList.at(i)->isAutomatic();
+ qDebug() << " - Current Geometry:" << devList.at(i)->currentGeometry();
+ qDebug() << " - Physical Size (mm):" << devList.at(i)->physicalSizeMM();
+ qDebug() << " - Available Resolutions:" << devList.at(i)->availableResolutions();
}
+ QString disable = "DVI-I-1";
+ qDebug() << "Try Disabling Monitor:" << disable;
+ devList.disableMonitor(disable);
+ qDebug() << "Finished Test!";
return 0;
}
bgstack15