aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/test
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-07 20:46:50 -0400
committerKen Moore <ken@ixsystems.com>2017-06-07 20:46:50 -0400
commit14341fdd69aa8034d194660c02a5ed55a8c3c838 (patch)
treedbadd7dc56f8d61a4428628639a3a2e2f5dcc157 /src-qt5/core/libLumina/test
parentSwitch the core-utilities (lumina-search) over to using the LUtils::openSetti... (diff)
downloadlumina-14341fdd69aa8034d194660c02a5ed55a8c3c838.tar.gz
lumina-14341fdd69aa8034d194660c02a5ed55a8c3c838.tar.bz2
lumina-14341fdd69aa8034d194660c02a5ed55a8c3c838.zip
Commit some more work-in-progress for the new LuminaRandR class (replacement for xrandr using the XCB libraries)
Diffstat (limited to 'src-qt5/core/libLumina/test')
-rw-r--r--src-qt5/core/libLumina/test/main.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src-qt5/core/libLumina/test/main.cpp b/src-qt5/core/libLumina/test/main.cpp
index 309fb938..b2ec9e41 100644
--- a/src-qt5/core/libLumina/test/main.cpp
+++ b/src-qt5/core/libLumina/test/main.cpp
@@ -5,9 +5,16 @@
int main(int argc, char** argv){
QApplication A(argc, argv);
- qDebug() << "Starting monitor scan...";
- QList<OutputDevice> outputs = OutputDevice::availableMonitors();
- qDebug() << "Finished monitor Scan";
- OutputDeviceList();
+ 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();
+ }
return 0;
}
bgstack15