mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Ref T345, clear model function
This commit is contained in:
@@ -32,6 +32,7 @@ class QLayout;
|
||||
class QMimeData;
|
||||
class QTabWidget;
|
||||
class QGraphicsOpacityEffect;
|
||||
class QAbstractItemModel;
|
||||
|
||||
namespace BlackMisc { class CIcon; }
|
||||
namespace BlackGui
|
||||
@@ -170,6 +171,9 @@ namespace BlackGui
|
||||
//! Only the row part and unique (so no rows is twice in the list)
|
||||
static QList<int> indexToUniqueRows(const QModelIndexList &indexes);
|
||||
|
||||
//! Clear a model
|
||||
static int clearModel(QAbstractItemModel *model);
|
||||
|
||||
//! Is top level widget?
|
||||
static bool isTopLevelWidget(QWidget *widget);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user