aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/test
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-22 04:55:42 -0400
committerKen Moore <ken@ixsystems.com>2017-06-22 04:55:42 -0400
commit60b24de5be126f387e5bd4ea654c36e7f0bdd0d4 (patch)
tree9e9bd4b7865f46b0deae7619be296c8994fb8660 /src-qt5/core/libLumina/test
parentOops - forgot to add the new test.xml file to the last commit. (diff)
parentStart a large update to LuminaRandR info retrieval routine. (diff)
downloadlumina-60b24de5be126f387e5bd4ea654c36e7f0bdd0d4.tar.gz
lumina-60b24de5be126f387e5bd4ea654c36e7f0bdd0d4.tar.bz2
lumina-60b24de5be126f387e5bd4ea654c36e7f0bdd0d4.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core/libLumina/test')
-rw-r--r--src-qt5/core/libLumina/test/main.cpp24
1 files changed, 15 insertions, 9 deletions
diff --git a/src-qt5/core/libLumina/test/main.cpp b/src-qt5/core/libLumina/test/main.cpp
index b2ec9e41..5c6fa67f 100644
--- a/src-qt5/core/libLumina/test/main.cpp
+++ b/src-qt5/core/libLumina/test/main.cpp
@@ -1,20 +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() << " - 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