mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #693, GUI dialog when application closes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user