Uwe Stöhr wrote: > > BTW, why did we remove the %-items from hspace and vspace again? I think > > that > > > \hspace{0.25\linewidth} or \vspace{.5\textheight} might be quite useful, > > wouldn't it? > > Yes it would, but \h(v)space don't allow relative units.
Sure? The following works for me as expected: a\hspace{0.25\textwidth}b \vspace{.5\textheight} c > > - if (QComboBox::itemText(i).contains('%') > 0) { > > + if (QComboBox::itemData(i).toString().contains('%')) { > > What is the benefit of this change? The original test would fail if the percent character was dropped in a translation. The itemData now contains the real unit_names, so a safe comparision is possible (whereas itemText is the translated unit_name_gui). Jürgen