RFC: shortText -> iconText in XMLGUI
Albert Astals Cid
aacid at kde.org
Sun Aug 9 14:55:37 BST 2009
A Diumenge, 9 d'agost de 2009, Christoph Feck va escriure:
> Hi,
>
> While looking at bug 201346 ("Allow to edit labels in toolbars"), I
> stumbled upon a feature in XMLGUI designed to solve the problem of long
> icon texts: There is an attribute "shortText" for Action items.
>
> Unfortunately, QAction in Qt4 uses "iconText", and I noticed that manually
> adding this attribute to an Action in a ui.rc file indeed works as expected
> (while "shortText" does not). This would mean, however, that such files
> would not pass any automatic XML verification, because both the .dtd and
> the .xsd do not have the "iconText" attribute.
>
> There are three options, and I want feedback about them:
>
> 1) Simply replace "shortText" with "iconText" in the .dtd and .xsd. The
> attribute never worked anyway. The downside would be if existing ui.rc
> files used this attribute, they would fail to verify now, but this would
> actually make developers aware of the problem. This is the option I would
> prefer.
tsdgeos at bluebox:~$ locate *.rc | xargs grep -Hi shorttext
tsdgeos at bluebox:~$
So there seems to be noone (at least inside our svn) so it's not much pain to
change it.
Albert
More information about the kde-core-devel
mailing list