r18015 by jghali - #11308: Drop-down list in Measurements tool is too small
scribus-commit
scribus-commit at lists.scribus.net
Sun Dec 30 22:19:41 UTC 2012
Author: jghali
Date: Sun Dec 30 22:19:41 2012
New Revision: 18015
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18015
Log:
#11308: Drop-down list in Measurements tool is too small
Modified:
trunk/Scribus/scribus/ui/measurements.cpp
Modified: trunk/Scribus/scribus/ui/measurements.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18015&path=/trunk/Scribus/scribus/ui/measurements.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/measurements.cpp (original)
+++ trunk/Scribus/scribus/ui/measurements.cpp Sun Dec 30 22:19:41 2012
@@ -27,10 +27,9 @@
int maxUindex = unitGetMaxIndex() - 2;
textWidth = fontMetrics().width("mmm")+12;
for (int i = 0; i <= maxUindex; ++i)
- {
unitSwitch->addItem(unitGetStrFromIndex(i));
- unitSwitch->setMinimumSize(textWidth, 12);
- }
+ int minHeight = unitSwitch->minimumSizeHint().height();
+ unitSwitch->setMinimumSize(textWidth, minHeight);
resize(minimumSizeHint());
connect(unitSwitch, SIGNAL(currentIndexChanged(int)), this, SLOT(unitChanged()));
}
More information about the scribus-commit
mailing list