diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-21 15:10:56 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-21 15:10:56 -0400 |
commit | 9e9aef184f56a8e63ff63ee56310f572721d4cb3 (patch) | |
tree | f8a86c39bd53495f0ba1ca09e703c17be209c986 /src-qt5/core | |
parent | Hotpatch to lumina-xconfig. (diff) | |
download | lumina-9e9aef184f56a8e63ff63ee56310f572721d4cb3.tar.gz lumina-9e9aef184f56a8e63ff63ee56310f572721d4cb3.tar.bz2 lumina-9e9aef184f56a8e63ff63ee56310f572721d4cb3.zip |
Get a lot more of the LuminaRandR class functional. The "set" routines are not working for some reason (even when using the same XLib function as xrandr for disabling a monitor)
Diffstat (limited to 'src-qt5/core')
-rw-r--r-- | src-qt5/core/libLumina/test/main.cpp | 25 |
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; } |