summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorManuel Schneider2013-12-02 19:15:20 +0100
committerManuel Schneider2013-12-02 19:15:20 +0100
commit73d8b47d503f0adfea0f5d72bbd47fabbe8cefa2 (patch)
treedb55d166e8b221d82e8d357e9fb4384546487446 /src
parentNo tranparency supported at login (diff)
downloadbeamergui-73d8b47d503f0adfea0f5d72bbd47fabbe8cefa2.tar.gz
beamergui-73d8b47d503f0adfea0f5d72bbd47fabbe8cefa2.tar.xz
beamergui-73d8b47d503f0adfea0f5d72bbd47fabbe8cefa2.zip
Debug stuff
Diffstat (limited to 'src')
-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();