mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
kuiserver: compiler warning fix
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
b233b02d1c
commit
1e5f051548
1 changed files with 5 additions and 6 deletions
|
@ -161,21 +161,20 @@ QModelIndex ProgressListModel::index(int row, int column, const QModelIndex &par
|
||||||
{
|
{
|
||||||
Q_UNUSED(parent);
|
Q_UNUSED(parent);
|
||||||
|
|
||||||
if (row >= m_jobViews.count() || column > 0)
|
if (row >= m_jobViews.count() || column > 0) {
|
||||||
return QModelIndex();
|
return QModelIndex();
|
||||||
|
}
|
||||||
return createIndex(row, column);
|
return createIndex(row, column);
|
||||||
}
|
}
|
||||||
|
|
||||||
QModelIndex ProgressListModel::indexForJob(JobView *jobView) const
|
QModelIndex ProgressListModel::indexForJob(JobView *jobView) const
|
||||||
{
|
{
|
||||||
int index = m_jobViews.indexOf(jobView);
|
int index = m_jobViews.indexOf(jobView);
|
||||||
|
|
||||||
if (index != -1) {
|
if (index == -1) {
|
||||||
return createIndex(index, 0, jobView);
|
|
||||||
} else {
|
|
||||||
return QModelIndex();
|
return QModelIndex();
|
||||||
}
|
}
|
||||||
|
return createIndex(index, 0, jobView);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ProgressListModel::rowCount(const QModelIndex &parent) const
|
int ProgressListModel::rowCount(const QModelIndex &parent) const
|
||||||
|
|
Loading…
Add table
Reference in a new issue