diff --git a/sources/diagramfoliolist.cpp b/sources/diagramfoliolist.cpp index dcd316b89..8e45ee5ff 100644 --- a/sources/diagramfoliolist.cpp +++ b/sources/diagramfoliolist.cpp @@ -238,10 +238,10 @@ void DiagramFolioList::buildGrid(const QRectF &rect, int rows, int tables, qreal * @param row_RectF rectangle of header */ void DiagramFolioList::fillHeader(QPainter *qp, const QRectF &row_RectF) { - QString authorTranslatable = tr("Auteur"); - QString titleTranslatable = tr("Titre"); - QString folioTranslatable = tr("Folio"); - QString dateTranslatable = tr("Date"); + QString authorTranslatable(QObject::tr("Auteur")); + QString titleTranslatable(QObject::tr("Titre")); + QString folioTranslatable(QObject::tr("Folio")); + QString dateTranslatable(QObject::tr("Date")); qp->save(); qp->setFont(QETApp::diagramTextsFont(13)); diff --git a/sources/qetgraphicsitem/qetshapeitem.cpp b/sources/qetgraphicsitem/qetshapeitem.cpp index ece0db948..7593de1cf 100644 --- a/sources/qetgraphicsitem/qetshapeitem.cpp +++ b/sources/qetgraphicsitem/qetshapeitem.cpp @@ -202,16 +202,16 @@ void QetShapeItem::editProperty() QVBoxLayout dialog_layout(&property_dialog); //GroupBox for resizer image - QGroupBox restyle_groupe(tr("Shape Line Style", "shape style")); + QGroupBox restyle_groupe(QObject::tr("Type de ligne", "shape style")); dialog_layout.addWidget(&restyle_groupe); QHBoxLayout restyle_layout(&restyle_groupe); QComboBox style_combo(&property_dialog); - style_combo.addItem(tr("Normal")); - style_combo.addItem(tr("Tiret")); - style_combo.addItem(tr("Pointill\351")); - style_combo.addItem(tr("Traits et points")); - style_combo.addItem(tr("Traits points points")); + style_combo.addItem(QObject::tr("Normal")); + style_combo.addItem(QObject::tr("Tiret")); + style_combo.addItem(QObject::tr("Pointill\351")); + style_combo.addItem(QObject::tr("Traits et points")); + style_combo.addItem(QObject::tr("Traits points points")); // The items have been added in order accordance with Qt::PenStyle. style_combo.setCurrentIndex(int(_shapeStyle) - 1);