mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
Merge from origin
This commit is contained in:
parent
6f37a731fc
commit
a4bcbf6115
@ -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);
|
||||
|
||||
|
||||
|
@ -503,7 +503,7 @@ void UiTreeModelPdm::notifyModelChanged()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QVariant UiTreeModelPdm::headerData(int section, Qt::Orientation orientation, int role /*= Qt::DisplayRole */) const
|
||||
{
|
||||
if (role != Qt::DisplayRole)
|
||||
if (role != Qt::DisplayRole)
|
||||
return QVariant();
|
||||
|
||||
if (section < m_columnHeaders.size())
|
||||
|
Loading…
Reference in New Issue
Block a user