[rkward-cvs] SF.net SVN: rkward:[4085] trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Fri Dec 9 18:08:31 UTC 2011


Revision: 4085
          http://rkward.svn.sourceforge.net/rkward/?rev=4085&view=rev
Author:   tfry
Date:     2011-12-09 18:08:30 +0000 (Fri, 09 Dec 2011)
Log Message:
-----------
Try different method of ensuring column width. Hopefully this will fix the section size problem on Mac.

Modified Paths:
--------------
    trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp

Modified: trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp
===================================================================
--- trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp	2011-12-08 19:28:44 UTC (rev 4084)
+++ trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp	2011-12-09 18:08:30 UTC (rev 4085)
@@ -472,7 +472,7 @@
 			item->setText (2, version.at (i));
 			item->setText (3, libpath.at (i));
 		}
-		installed_view->resizeColumnToContents (0);
+		installed_view->setColumnWidth (0, installed_view->iconSize ().width ());
 		installed_view->setSortingEnabled (true);
 		installed_view->sortItems (0, Qt::AscendingOrder);
 	} else if (command->getFlags () == GET_LOADED_PACKAGES) {
@@ -1000,7 +1000,6 @@
 				if (role == Qt::DisplayRole) return QVariant (i18n ("Remove"));
 			}
 		} else if (col == EnhancesRKWard) {
-			if (role == Qt::DisplayRole) return QVariant (QString (" "));	// must have a placeholder, here, or Qt will collapse the column
 			if ((role == Qt::DecorationRole) || (role == Qt::UserRole)) {
 				bool enhance_rk;
 				if (prow == InstalledPackages) enhance_rk = enhance_rk_in_installed.value (irow);

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