summaryrefslogtreecommitdiffstats
path: root/src/widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 62bf8a9..3e31dbb 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -58,7 +58,7 @@ Widget::Widget(QWidget *parent) :
&& _outputMap[_connectedOutputList[0]]->mm_height == 0 )
&& (_outputMap[_connectedOutputList[1]]->mm_width == 0
&& _outputMap[_connectedOutputList[1]]->mm_height == 0 ))*/) {
- std::cout << "BEAMER CONNECTED!" << std::endl;
+ qDebug() << "BEAMER CONNECTED!";
// Get a human readable reference
if (_outputMap[_connectedOutputList[0]]->mm_width == 0
@@ -76,6 +76,7 @@ Widget::Widget(QWidget *parent) :
struct ifaddrs * ifa=NULL;
void * tmpAddrPtr=NULL;
QString ipV4;
+ qDebug() << "Ip is" << ipV4;
getifaddrs(&ifAddrStruct);
// Iterate through the adresses.
for (ifa = ifAddrStruct; ifa != NULL; ifa = ifa->ifa_next) {
@@ -101,12 +102,12 @@ Widget::Widget(QWidget *parent) :
// to be tested on this system and will be applied immediately.
settings.beginGroup(GROUP_SPECIFIC);
if ( settings.contains(ipV4) ) {
- qDebug() << ipV4 ;
// First get a useful representation
unsigned int width, height;
QStringList modeAsStrings =
settings.value(ipV4)
.toString().split("x", QString::SkipEmptyParts);
+ qDebug() << "Found Ip setting" << modeAsStrings;
width = modeAsStrings.at(0).toInt();
height = modeAsStrings.at(1).toInt();
@@ -254,7 +255,7 @@ Widget::Widget(QWidget *parent) :
// }
// }
} else {
- std::cout << "NO EDID!" << std::endl;
+ qDebug() << "NO EDID!";
// Fill widget with data without AR match
// Fill widget with data
for ( QList<XRRModeInfo*>::iterator i = commonModes.begin();