Action for recent file.  
 More...
#include <RecentSessions.h>
      
        
          | omni::ui::RecentFileAction::RecentFileAction | ( | QString const & | _file, | 
        
          |  |  | QObject * | _parent = nullptr | 
        
          |  | ) |  |  | 
      
 
   30       QAction(_file, _parent),
 
   33       connect(
this, SIGNAL(triggered()), 
this, SLOT(
loadSession()));
 
void setState()
Action is disabled when file does not exist. 
Definition: RecentSessions.cpp:48
void loadSession()
Load session triggers fileToBeLoaded signal. 
Definition: RecentSessions.cpp:39
QString file_
Definition: RecentSessions.h:51
 
 
 
      
        
          | omni::ui::RecentFileAction::~RecentFileAction | ( |  | ) |  | 
      
 
 
      
        
          | bool omni::ui::RecentFileAction::fileExists | ( |  | ) | const | 
      
 
Check if file exists. 
bool fileExists(QString const &_filename)
Checks if file exists and is actually a file and not a directory. 
Definition: util.cpp:49
QString file_
Definition: RecentSessions.h:51
 
 
 
  
  | 
        
          | void omni::ui::RecentFileAction::fileToBeLoaded | ( | QString const & |  | ) |  |  | signal | 
 
 
  
  | 
        
          | void omni::ui::RecentFileAction::loadSession | ( |  | ) |  |  | slot | 
 
Load session triggers fileToBeLoaded signal. 
void setState()
Action is disabled when file does not exist. 
Definition: RecentSessions.cpp:48
void fileToBeLoaded(QString const &)
QString file_
Definition: RecentSessions.h:51
 
 
 
  
  | 
        
          | void omni::ui::RecentFileAction::setState | ( |  | ) |  |  | slot | 
 
Action is disabled when file does not exist. 
bool fileExists() const 
Check if file exists. 
Definition: RecentSessions.cpp:44
 
 
 
  
  | 
        
          | QString omni::ui::RecentFileAction::file_ |  | private | 
 
 
The documentation for this class was generated from the following files: