[rkward-cvs] SF.net SVN: rkward:[3699] trunk/rkward/rkward/plugin/rkstandardcomponentgui .cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Fri Jun 24 13:46:30 UTC 2011


Revision: 3699
          http://rkward.svn.sourceforge.net/rkward/?rev=3699&view=rev
Author:   tfry
Date:     2011-06-24 13:46:29 +0000 (Fri, 24 Jun 2011)

Log Message:
-----------
Next variant of r3697: If minimum size is obviously too small, set preferred size as minimum, instead.

Modified Paths:
--------------
    trunk/rkward/rkward/plugin/rkstandardcomponentgui.cpp

Modified: trunk/rkward/rkward/plugin/rkstandardcomponentgui.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkstandardcomponentgui.cpp	2011-06-23 18:37:21 UTC (rev 3698)
+++ trunk/rkward/rkward/plugin/rkstandardcomponentgui.cpp	2011-06-24 13:46:29 UTC (rev 3699)
@@ -146,6 +146,7 @@
 
 	// HACK: Workaround for this issue (caused by a mysterious Qt bug, apparently): http://www.mail-archive.com/rkward-devel@lists.sourceforge.net/msg01340.html
 	QSize min = minimumSize ();
+	if ((min.width () < 50) || (min.height () < 50)) min = sizeHint ();
 	setMinimumSize (min.expandedTo (QSize (50, 50)));
 
 	if (toggle_code_button) {	// this is a dialog, not  wizard


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list