[qet] [1779] Title block properties: added tooltips onto historical fields. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 1779
Author: xavier
Date: 2012-05-09 19:21:44 +0200 (Wed, 09 May 2012)
Log Message:
-----------
Title block properties: added tooltips onto historical fields.
Modified Paths:
--------------
trunk/sources/titleblockpropertieswidget.cpp
Modified: trunk/sources/titleblockpropertieswidget.cpp
===================================================================
--- trunk/sources/titleblockpropertieswidget.cpp 2012-05-09 15:45:01 UTC (rev 1778)
+++ trunk/sources/titleblockpropertieswidget.cpp 2012-05-09 17:21:44 UTC (rev 1779)
@@ -303,6 +303,20 @@
connect(titleblock_fixed_date, SIGNAL(toggled(bool)), titleblock_date, SLOT(setEnabled(bool)));
titleblock_date -> setCalendarPopup(true);
+ // we add a bunch of tooltips for users to know how they can put these
+ // values into their title block templates
+ QString variable_tooltip = tr("Disponible en tant que %1 pour les mod\350les de cartouches.");
+ titleblock_title -> setToolTip(QString(variable_tooltip).arg("%title"));
+ titleblock_author -> setToolTip(QString(variable_tooltip).arg("%author"));
+ titleblock_filename -> setToolTip(QString(variable_tooltip).arg("%filename"));
+ titleblock_folio -> setToolTip(QString(variable_tooltip).arg("%folio"));
+ QString date_variable_tooltip = QString(variable_tooltip).arg("%date");
+ titleblock_current_date -> setToolTip(date_variable_tooltip);
+ titleblock_fixed_date -> setToolTip(date_variable_tooltip);
+ titleblock_date -> setToolTip(date_variable_tooltip);
+ folio_tip -> setToolTip(tr("%id et %total sont disponibles en tant que %{folio-id} et %{folio-total} (respectivement) pour les mod\350les de cartouches."));
+
+ // widgets for users to enter their own name/value pairs
additional_fields_label = new QLabel(
tr(
"Vous pouvez d\xE9finir ici vos propres associations noms/valeurs pour"