aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/test/main.cpp
blob: b2ec9e414bfbaaabb66f4aebc1d82a094ba62b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

#include "../LuminaRandR.h"
#include <QDebug>
#include <QApplication>

int main(int argc, char** 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();
  }
  return 0;
}
bgstack15