mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #22: Fix compilation warnings
This commit is contained in:
@@ -312,12 +312,12 @@ QVariant InkCoverageStatisticsModel::data(const QModelIndex& index, int role) co
|
||||
break;
|
||||
}
|
||||
|
||||
case Qt::BackgroundColorRole:
|
||||
case Qt::BackgroundRole:
|
||||
{
|
||||
if (index.column() >= LastStandardColumn && getChannelColumn(index.column()) == ChannelColumnColorant)
|
||||
{
|
||||
const int channelIndex = getChannelIndex(index.column());
|
||||
return m_inkCoverageResults.sumInfo[channelIndex].color;
|
||||
return QBrush(m_inkCoverageResults.sumInfo[channelIndex].color);
|
||||
}
|
||||
|
||||
break;
|
||||
|
@@ -358,9 +358,9 @@ void OutputPreviewWidget::paintEvent(QPaintEvent* event)
|
||||
const int textWidth = painter.fontMetrics().horizontalAdvance(textCoverage);
|
||||
const int textStart = textRight - textWidth;
|
||||
|
||||
QRect textRect(textStart, yCoordinate - halfHeight, textWidth + 1, rowHeight);
|
||||
QRect currentTextRect(textStart, yCoordinate - halfHeight, textWidth + 1, rowHeight);
|
||||
painter.setPen(Qt::black);
|
||||
painter.drawText(textRect, Qt::AlignVCenter | Qt::AlignLeft | Qt::TextSingleLine, textCoverage);
|
||||
painter.drawText(currentTextRect, Qt::AlignVCenter | Qt::AlignLeft | Qt::TextSingleLine, textCoverage);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user