mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Qbs: fix build clang, mingw
This commit is contained in:
@@ -55,7 +55,7 @@ pdf::PDFOperationResult AudioBookCreator::createAudioBook(const Settings& settin
|
||||
QString trimmedText = item.text.trimmed();
|
||||
if (!trimmedText.isEmpty())
|
||||
{
|
||||
textStream << trimmedText << endl;
|
||||
textStream << trimmedText << Qt::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -49,9 +49,9 @@ AudioBookPlugin::AudioBookPlugin() :
|
||||
m_actionMoveSelectionUp(nullptr),
|
||||
m_actionMoveSelectionDown(nullptr),
|
||||
m_actionCreateAudioBook(nullptr),
|
||||
m_actionClear(nullptr),
|
||||
m_audioTextStreamDockWidget(nullptr),
|
||||
m_audioTextStreamEditorModel(nullptr),
|
||||
m_actionClear(nullptr)
|
||||
m_audioTextStreamEditorModel(nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
|
@@ -308,6 +308,8 @@ QVariant InkCoverageStatisticsModel::data(const QModelIndex& index, int role) co
|
||||
Q_ASSERT(false);
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case Qt::BackgroundColorRole:
|
||||
|
@@ -355,7 +355,7 @@ void OutputPreviewWidget::paintEvent(QPaintEvent* event)
|
||||
|
||||
QString textCoverage = QString("%1 %").arg(locale.toString(coverage * 100.0, 'f', 2));
|
||||
const int textRight = triangleLeft - rowHeight / 4;
|
||||
const int textWidth = painter.fontMetrics().width(textCoverage);
|
||||
const int textWidth = painter.fontMetrics().horizontalAdvance(textCoverage);
|
||||
const int textStart = textRight - textWidth;
|
||||
|
||||
QRect textRect(textStart, yCoordinate - halfHeight, textWidth + 1, rowHeight);
|
||||
|
Reference in New Issue
Block a user