[mythtv-commits] mythtv commit: r21678 by stuartm
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Sat Sep 5 16:22:25 UTC 2009
Author: stuartm
Date: 2009-09-05 16:22:25 +0000 (Sat, 05 Sep 2009)
New Revision: 21678
Changeset: http://cvs.mythtv.org/trac/changeset/21678
Modified:
trunk/mythtv/libs/libmythui/mythuibuttonlist.cpp
trunk/mythtv/libs/libmythui/mythuibuttonlist.h
trunk/mythtv/libs/libmythui/mythuispinbox.cpp
trunk/mythtv/libs/libmythui/mythuispinbox.h
Log:
Allow the use of a template with spinboxes, so although they remain strictly for numeric values, you can display that value in the context of a string. e.g. '15 minutes', 'Increase Priority by 2', 'Decrease priority by -3', 'Normal Priority'. It's possible to define multiple templates for negative, zero or positive values, but it's not necessary to define all or even one. The use of QTs numeric/plural translations are encouraged, with a single string producing two translations '%n minute(s)' - '1 minute' or '2 minutes'.
More information about the mythtv-commits
mailing list