From: <lso...@us...> - 2010-06-25 13:35:45
|
Revision: 1740 http://gofigure2.svn.sourceforge.net/gofigure2/?rev=1740&view=rev Author: lsouhait Date: 2010-06-25 13:35:39 +0000 (Fri, 25 Jun 2010) Log Message: ----------- ENH: fix the size of the icons to 22x22 and the problem for mac to avoid the main window to be bigger than the screen Modified Paths: -------------- trunk/Main/QGoMainWindow.cxx Modified: trunk/Main/QGoMainWindow.cxx =================================================================== --- trunk/Main/QGoMainWindow.cxx 2010-06-23 16:12:51 UTC (rev 1739) +++ trunk/Main/QGoMainWindow.cxx 2010-06-25 13:35:39 UTC (rev 1740) @@ -59,6 +59,7 @@ // Qt includes #include <QDir> #include <QDesktopServices> +#include <QDesktopWidget> #include <QUrl> #include <QFileDialog> #include <QMessageBox> @@ -114,6 +115,13 @@ setCorner(Qt::TopRightCorner, Qt::RightDockWidgetArea); setCorner(Qt::BottomRightCorner, Qt::RightDockWidgetArea); + QRect screen = QApplication::desktop()->availableGeometry(this); + QSize MaximumSize = screen.size(); + this->setMaximumSize(MaximumSize); + //QSize IconSize = this->iconSize(); + QSize SizeIcon(22,22); + this->setIconSize(SizeIcon); + this->setCentralWidget( this->CentralTabWidget ); this->setWindowTitle( title ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |