Linux compile fix

This commit is contained in:
Magne Sjaastad 2018-09-21 16:16:46 +02:00
parent 0127e0c1b5
commit f8d4864e53
2 changed files with 15 additions and 13 deletions

View File

@ -18,9 +18,11 @@
#pragma once #pragma once
#include "cafCmdFeature.h"
#include <QFile> #include <QFile>
#include "cafCmdFeature.h" #include <memory>
class RimWellPath; class RimWellPath;
class RicExportWellPathsUi; class RicExportWellPathsUi;
@ -41,12 +43,10 @@ class RicExportSelectedWellPathsFeature : public caf::CmdFeature
static QFilePtr openFileForExport(const QString& folderName, const QString& fileName); static QFilePtr openFileForExport(const QString& folderName, const QString& fileName);
static void handleAction(const std::vector<RimWellPath*>& wellPaths); static void handleAction(const std::vector<RimWellPath*>& wellPaths);
protected:
// Overrides
virtual bool isCommandEnabled();
virtual void onActionTriggered( bool isChecked );
virtual void setupActionLook(QAction* actionToSetup);
private: private:
bool isCommandEnabled() override;
void onActionTriggered( bool isChecked ) override;
void setupActionLook(QAction* actionToSetup) override;
static RicExportWellPathsUi* openDialog(); static RicExportWellPathsUi* openDialog();
}; };

View File

@ -18,10 +18,13 @@
#pragma once #pragma once
#include <QFile>
#include "cafCmdFeature.h" #include "cafCmdFeature.h"
#include <QFile>
#include <memory>
class RimWellPath; class RimWellPath;
//================================================================================================== //==================================================================================================
@ -39,9 +42,8 @@ class RicExportVisibleWellPathsFeature : public caf::CmdFeature
void exportWellPath(const RimWellPath* wellPath, double mdStepSize, const QString& folder); void exportWellPath(const RimWellPath* wellPath, double mdStepSize, const QString& folder);
QFilePtr openFileForExport(const QString& folderName, const QString& fileName); QFilePtr openFileForExport(const QString& folderName, const QString& fileName);
protected: private:
// Overrides bool isCommandEnabled() override;
virtual bool isCommandEnabled(); void onActionTriggered( bool isChecked ) override;
virtual void onActionTriggered( bool isChecked ); void setupActionLook(QAction* actionToSetup) override;
virtual void setupActionLook(QAction* actionToSetup);
}; };