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:
@ -678,11 +678,11 @@ QVariant PDFThumbnailsItemModel::data(const QModelIndex& index, int role) const
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
const int page = index.row();
|
||||
const int pageIndex = index.row();
|
||||
switch (role)
|
||||
{
|
||||
case Qt::DisplayRole:
|
||||
return QString::number(page + 1);
|
||||
return QString::number(pageIndex + 1);
|
||||
|
||||
case Qt::DecorationRole:
|
||||
{
|
||||
|
Reference in New Issue
Block a user