mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 02:10:52 +01:00
Title block properties: added tooltips onto historical fields.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1779 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -303,6 +303,20 @@ void TitleBlockPropertiesWidget::initWidgets(const TitleBlockProperties &titlebl
|
|||||||
connect(titleblock_fixed_date, SIGNAL(toggled(bool)), titleblock_date, SLOT(setEnabled(bool)));
|
connect(titleblock_fixed_date, SIGNAL(toggled(bool)), titleblock_date, SLOT(setEnabled(bool)));
|
||||||
titleblock_date -> setCalendarPopup(true);
|
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(
|
additional_fields_label = new QLabel(
|
||||||
tr(
|
tr(
|
||||||
"Vous pouvez définir ici vos propres associations noms/valeurs pour"
|
"Vous pouvez définir ici vos propres associations noms/valeurs pour"
|
||||||
|
|||||||
Reference in New Issue
Block a user