Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::FilePathLineEditQt Class Reference

QLineEdit for file paths. When editing the path, i.e. the widget is focused, the full path is shown. When not in focus, it shows only the file name with extension. A small warning icon is shown to indicate non-existing files and paths. More...

#include <filepathlineeditqt.h>

+ Inheritance diagram for inviwo::FilePathLineEditQt:

Signals

void pathChanged (const std::filesystem::path &)
 
- Signals inherited from inviwo::LineEditQt
void editingCanceled ()
 

Public Member Functions

 FilePathLineEditQt (QWidget *parent=nullptr)
 
void setPath (const std::filesystem::path &path)
 
const std::filesystem::path & getPath () const
 
void setAcceptMode (AcceptMode mode)
 
void setFileMode (FileMode mode)
 
void setCursorToEnd ()
 
- Public Member Functions inherited from inviwo::LineEditQt
 LineEditQt (QWidget *parent=nullptr)
 
virtual QSize sizeHint () const override
 
virtual void paintEvent (QPaintEvent *e) override
 

Protected Member Functions

virtual void resizeEvent (QResizeEvent *event) override
 
bool updateIcon (const std::filesystem::path &path)
 
- Protected Member Functions inherited from inviwo::LineEditQt
virtual void keyPressEvent (QKeyEvent *e) override
 

Detailed Description

QLineEdit for file paths. When editing the path, i.e. the widget is focused, the full path is shown. When not in focus, it shows only the file name with extension. A small warning icon is shown to indicate non-existing files and paths.

Member Function Documentation

◆ updateIcon()

bool inviwo::FilePathLineEditQt::updateIcon ( const std::filesystem::path & path)
protected

update the status icon based on the given path

Returns
true if the path is valid given the current accept mode and file mode, otherwise false

The documentation for this class was generated from the following file: