mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
Fix deprecated QRegExp
Use QRegularExpression instead. https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users This function was introduced in Qt 5
This commit is contained in:
@@ -299,7 +299,9 @@ void DiagramPrintDialog::updatePrintTypeDialog()
|
|||||||
{
|
{
|
||||||
if (pdf_choice_ -> isChecked() && filepath.endsWith(".ps"))
|
if (pdf_choice_ -> isChecked() && filepath.endsWith(".ps"))
|
||||||
{
|
{
|
||||||
QRegExp re("\\.ps$", Qt::CaseInsensitive);
|
QRegularExpression re
|
||||||
|
("\\.ps$",
|
||||||
|
QRegularExpression::CaseInsensitiveOption);
|
||||||
filepath.replace(re, ".pdf");
|
filepath.replace(re, ".pdf");
|
||||||
filepath_field_ -> setText(filepath);
|
filepath_field_ -> setText(filepath);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user