defuze.me
Client
|
00001 /************************************************************************** 00002 ** defuze.me Epitech Innovative Project 00003 ** 00004 ** Copyright 2010-2011 00005 ** Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard 00006 ** Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier 00007 ** 00008 ** All rights reserved. 00009 **************************************************************************/ 00010 00011 #include "uiconfiguration.hpp" 00012 #include <QtCore/QDebug> 00013 00014 using namespace Gui; 00015 00016 UiConfiguration::UiConfiguration() 00017 { 00018 desktop = QApplication::desktop(); 00019 _dump(); 00020 } 00021 00022 void UiConfiguration::_dump() 00023 { 00024 qDebug() << "Currently available Ui configuration"; 00025 qDebug() << " Screen count:" << desktop->screenCount(); 00026 qDebug() << " Primary screen:" << desktop->primaryScreen(); 00027 for (int i = 0 ; i < desktop->screenCount() ; ++i) 00028 qDebug() << " Screen" << i << "\t[Full]" << desktop->screenGeometry(i) << "\t[Available]" << desktop->availableGeometry(i); 00029 }