refs #693, GUI dialog when application closes

This commit is contained in:
Klaus Basan
2016-06-29 22:46:53 +02:00
parent 744c7235e6
commit 6650f18e57
5 changed files with 224 additions and 0 deletions

View File

@@ -327,4 +327,16 @@ namespace BlackGui
Q_UNUSED(ok);
return QMargins(l, t, r, b);
}
QList<int> CGuiUtility::indexToUniqueRows(const QModelIndexList &indexes)
{
QList<int> rows;
for (const QModelIndex i : indexes)
{
const int r = i.row();
if (rows.contains(r)) { continue; }
rows.append(r);
}
return rows;
}
} // ns