mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
#3037 AppFwk : Use QPointer
This commit is contained in:
parent
c486f7963e
commit
acf2f61d25
@ -81,10 +81,13 @@ void PdmUiTableItemEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
uiObject->uiOrdering(uiConfigName, dummy);
|
||||
}
|
||||
|
||||
QModelIndex miStart = m_model->index(m_row, 0);
|
||||
QModelIndex miEnd = m_model->index(m_row, m_model->columnCount());
|
||||
if (m_model)
|
||||
{
|
||||
QModelIndex miStart = m_model->index(m_row, 0);
|
||||
QModelIndex miEnd = m_model->index(m_row, m_model->columnCount());
|
||||
|
||||
m_model->notifyDataChanged(miStart, miEnd);
|
||||
m_model->notifyDataChanged(miStart, miEnd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -38,6 +38,8 @@
|
||||
|
||||
#include "cafPdmUiEditorHandle.h"
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
namespace caf
|
||||
{
|
||||
class PdmUiTableViewQModel;
|
||||
@ -57,8 +59,8 @@ protected: // Interface to override:
|
||||
virtual void configureAndUpdateUi(const QString& uiConfigName);
|
||||
|
||||
private:
|
||||
PdmUiTableViewQModel* m_model;
|
||||
int m_row;
|
||||
QPointer<PdmUiTableViewQModel> m_model;
|
||||
int m_row;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user