Add Icon to well log LAS curve

This commit is contained in:
Rebecca Cox
2018-03-15 13:04:57 +01:00
parent 69caf4b3b2
commit 7fbf195b18
2 changed files with 4 additions and 3 deletions

View File

@@ -87,13 +87,14 @@ void RicNewWellLogFileCurveFeature::onActionTriggered(bool isChecked)
//--------------------------------------------------------------------------------------------------
void RicNewWellLogFileCurveFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setIcon(QIcon(":/WellLogCurve16x16.png"));
actionToSetup->setText("New Well Log LAS Curve");
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RicNewWellLogFileCurveFeature::wellLogFilesAvailable() const
bool RicNewWellLogFileCurveFeature::wellLogFilesAvailable()
{
RimProject* project = RiaApplication::instance()->project();
if (project->activeOilField()->wellPathCollection())
@@ -102,7 +103,7 @@ bool RicNewWellLogFileCurveFeature::wellLogFilesAvailable() const
for (size_t i = 0; i < wellPaths.size(); i++)
{
if (wellPaths[i]->wellLogFiles().size() > 0)
if (!wellPaths[i]->wellLogFiles().empty())
{
return true;
}

View File

@@ -36,5 +36,5 @@ protected:
virtual void setupActionLook( QAction* actionToSetup ) override;
private:
bool wellLogFilesAvailable() const;
static bool wellLogFilesAvailable();
};