mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2162 Context menu: Use Qt typedef ulonglong, not size_t
This commit is contained in:
@@ -71,7 +71,7 @@ void RicEclipseHideFaultFeature::onActionTriggered(bool isChecked)
|
||||
QVariantList list = userData.toList();
|
||||
CAF_ASSERT(list.size() == 2);
|
||||
|
||||
size_t currentCellIndex = list[0].toUInt();
|
||||
size_t currentCellIndex = static_cast<size_t>(list[0].toULongLong());
|
||||
int currentFaceIndex = list[1].toInt();
|
||||
|
||||
const RigFault* fault = eclView->mainGrid()->findFaultFromCellIndexAndCellFace(currentCellIndex, cvf::StructGridInterface::FaceType(currentFaceIndex));
|
||||
|
||||
@@ -263,7 +263,8 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
|
||||
QString faultName = fault->name();
|
||||
|
||||
QVariantList hideFaultList;
|
||||
hideFaultList.push_back(m_currentCellIndex);
|
||||
qulonglong currentCellIndex = m_currentCellIndex;
|
||||
hideFaultList.push_back(currentCellIndex);
|
||||
hideFaultList.push_back(m_currentFaceIndex);
|
||||
|
||||
menuBuilder.addCmdFeatureWithUserData("RicEclipseHideFaultFeature", QString("Hide ") + faultName, hideFaultList);
|
||||
|
||||
Reference in New Issue
Block a user