Silence warnings
This commit is contained in:
parent
8957f2407d
commit
3c39faaaad
@ -56,7 +56,7 @@ static QImage convertImage(Pix &image)
|
|||||||
pixWriteMemBmp(&buffer, &len, &image);
|
pixWriteMemBmp(&buffer, &len, &image);
|
||||||
|
|
||||||
QImage result;
|
QImage result;
|
||||||
result.loadFromData(static_cast<uchar *>(buffer), len);
|
result.loadFromData(static_cast<uchar *>(buffer), int(len));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -847,9 +847,9 @@ QModelIndex Model::parent(const QModelIndex &child) const
|
|||||||
int Model::rowCount(const QModelIndex &parent) const
|
int Model::rowCount(const QModelIndex &parent) const
|
||||||
{
|
{
|
||||||
if (auto ptr = toComponent(parent)) {
|
if (auto ptr = toComponent(parent)) {
|
||||||
return ptr->children.size();
|
return int(ptr->children.size());
|
||||||
}
|
}
|
||||||
return root_ ? root_->children.size() : 0;
|
return root_ ? int(root_->children.size()) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Model::columnCount(const QModelIndex & /*parent*/) const
|
int Model::columnCount(const QModelIndex & /*parent*/) const
|
||||||
@ -893,7 +893,7 @@ QVariant Model::data(const QModelIndex &index, int role) const
|
|||||||
return ptr->progress > 0 ? ptr->progress : QVariant();
|
return ptr->progress > 0 ? ptr->progress : QVariant();
|
||||||
case int(Column::Files): {
|
case int(Column::Files): {
|
||||||
QStringList files;
|
QStringList files;
|
||||||
files.reserve(ptr->files.size());
|
files.reserve(int(ptr->files.size()));
|
||||||
for (const auto &f : ptr->files) files.append(f.expandedPath);
|
for (const auto &f : ptr->files) files.append(f.expandedPath);
|
||||||
return files.join(',');
|
return files.join(',');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user