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

tfry at users.sourceforge.net tfry at users.sourceforge.net
Fri Dec 9 18:54:17 UTC 2011


Revision: 4087
          http://rkward.svn.sourceforge.net/rkward/?rev=4087&view=rev
Author:   tfry
Date:     2011-12-09 18:54:16 +0000 (Fri, 09 Dec 2011)
Log Message:
-----------
Next attempt at fixing hidden icon 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-09 18:35:26 UTC (rev 4086)
+++ trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp	2011-12-09 18:54:16 UTC (rev 4087)
@@ -693,7 +693,13 @@
 
 	packages_status->initialize (parent->chain);
 	packages_view->setEnabled (true);
-	for (int i = 0; i <= RKRPackageInstallationStatus::PackageName; ++i) packages_view->resizeColumnToContents (i);
+	for (int i = 0; i <= RKRPackageInstallationStatus::PackageName; ++i) {
+		packages_view->resizeColumnToContents (i);
+#ifdef Q_WS_MAC
+		// HACK: Without this, the column is just too narrow on MacOS X, and the icon is hidden
+		if (i == RKRPackageInstallationStatus::EnhancesRKWard) packages_view->setColumnWidth (i, packages_view->columnWidth (i) + 16);
+#endif
+	}
 }
 
 void InstallPackagesWidget::filterStringChanged (const QString& new_filter) {

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