mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge from origin
This commit is contained in:
@@ -54,19 +54,19 @@
|
||||
class MySortFilterProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
public:
|
||||
MySortFilterProxyModel(QObject *parent = 0)
|
||||
: QSortFilterProxyModel(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void notifyModelChanged()
|
||||
{
|
||||
MySortFilterProxyModel(QObject *parent = 0)
|
||||
: QSortFilterProxyModel(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void notifyModelChanged()
|
||||
{
|
||||
QModelIndex startModelIdx = index(0,0);
|
||||
QModelIndex endModelIdx = index(rowCount(startModelIdx), 0);
|
||||
|
||||
emit dataChanged(startModelIdx, endModelIdx);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ QWidget* PdmUiTreeViewEditor::createWidget(QWidget* parent)
|
||||
m_proxyTreeModelPdm->setSourceModel(m_treeModelPdm);
|
||||
m_treeView->setModel(m_proxyTreeModelPdm);
|
||||
|
||||
m_treeView->setSortingEnabled(true);
|
||||
m_treeView->setSortingEnabled(true);
|
||||
m_treeView->sortByColumn(1, Qt::AscendingOrder);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user