mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
fix tr() cannot be called without context
add QObject:: qetdiagrameditor.cpp:2341: tr() cannot be called without context qetdiagrameditor.cpp:2372: tr() cannot be called without context diagramfoliolist.cpp:175: Class 'DiagramFolioList' lacks Q_OBJECT macro
This commit is contained in:
committed by
Laurent Trinques
parent
ca2e737df3
commit
cfb5acc8d5
@@ -172,7 +172,7 @@ void DiagramFolioList::fillRow(QPainter *qp, const QRectF &row_rect, const QStri
|
|||||||
else
|
else
|
||||||
workingFont.setPointSizeF(origFontSize);
|
workingFont.setPointSizeF(origFontSize);
|
||||||
qp -> setFont(workingFont);
|
qp -> setFont(workingFont);
|
||||||
QString heading = tr("Titre");
|
QString heading = QObject::tr("Titre");
|
||||||
if (title == heading)
|
if (title == heading)
|
||||||
qp -> drawText(QRectF(x, y, colWidths[1]*row_rect.width(),row_rect.height()), Qt::AlignCenter, title);
|
qp -> drawText(QRectF(x, y, colWidths[1]*row_rect.width(),row_rect.height()), Qt::AlignCenter, title);
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -2338,7 +2338,7 @@ void QETDiagramEditor::generateTerminalBlock()
|
|||||||
}
|
}
|
||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
QMessageBox::warning(nullptr,
|
QMessageBox::warning(nullptr,
|
||||||
tr("Error launching qet_tb_generator plugin"),
|
QObject::tr("Error launching qet_tb_generator plugin"),
|
||||||
QObject::tr("To install the plugin qet_tb_generator"
|
QObject::tr("To install the plugin qet_tb_generator"
|
||||||
"<br>"
|
"<br>"
|
||||||
"Visit :"
|
"Visit :"
|
||||||
@@ -2369,7 +2369,7 @@ void QETDiagramEditor::generateTerminalBlock()
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
QMessageBox::warning(nullptr,
|
QMessageBox::warning(nullptr,
|
||||||
tr("Error launching qet_tb_generator plugin"),
|
QObject::tr("Error launching qet_tb_generator plugin"),
|
||||||
QObject::tr("To install the plugin qet_tb_generator"
|
QObject::tr("To install the plugin qet_tb_generator"
|
||||||
"<br>"
|
"<br>"
|
||||||
"Visit : "
|
"Visit : "
|
||||||
|
|||||||
Reference in New Issue
Block a user