mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RicWellPathImportPerforationIntervalsFeature. Rename method
This commit is contained in:
parent
6028d8fcb3
commit
a0cb42a93b
@ -43,7 +43,7 @@ CAF_CMD_SOURCE_INIT(RicWellPathImportPerforationIntervalsFeature, "RicWellPathIm
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicWellPathImportPerforationIntervalsFeature::isCommandEnabled()
|
||||
{
|
||||
if (RicWellPathImportPerforationIntervalsFeature::selectedWellPath() != nullptr)
|
||||
if (RicWellPathImportPerforationIntervalsFeature::selectedWellPathCollection() != nullptr)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -56,7 +56,7 @@ bool RicWellPathImportPerforationIntervalsFeature::isCommandEnabled()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicWellPathImportPerforationIntervalsFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
RimWellPathCollection* wellPathCollection = RicWellPathImportPerforationIntervalsFeature::selectedWellPath();
|
||||
RimWellPathCollection* wellPathCollection = RicWellPathImportPerforationIntervalsFeature::selectedWellPathCollection();
|
||||
CVF_ASSERT(wellPathCollection);
|
||||
|
||||
// Open dialog box to select well path files
|
||||
@ -116,7 +116,7 @@ void RicWellPathImportPerforationIntervalsFeature::setupActionLook(QAction* acti
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellPathCollection* RicWellPathImportPerforationIntervalsFeature::selectedWellPath()
|
||||
RimWellPathCollection* RicWellPathImportPerforationIntervalsFeature::selectedWellPathCollection()
|
||||
{
|
||||
std::vector<RimWellPathCollection*> objects;
|
||||
caf::SelectionManager::instance()->objectsByType(&objects);
|
||||
|
@ -36,6 +36,6 @@ protected:
|
||||
virtual void setupActionLook( QAction* actionToSetup ) override;
|
||||
|
||||
private:
|
||||
static RimWellPathCollection* selectedWellPath();
|
||||
static RimWellPathCollection* selectedWellPathCollection();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user