mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add Icon to well log LAS curve
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@ protected:
|
||||
virtual void setupActionLook( QAction* actionToSetup ) override;
|
||||
|
||||
private:
|
||||
bool wellLogFilesAvailable() const;
|
||||
static bool wellLogFilesAvailable();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user