Plasma Engine  2.0
Loading...
Searching...
No Matches
plFileNameValidator Class Reference

Basic file name validator. Makes sure that under a given parent folder, the new file name is valid and not already in use by a different file. More...

#include <AssetBrowserFolderView.moc.h>

Inheritance diagram for plFileNameValidator:

Public Member Functions

 plFileNameValidator (QObject *pParent, plStringView sParentFolder, plStringView sCurrentName)
 Constructor. Validator requires the current location and name of the file.
 
virtual QValidator::State validate (QString &ref_sInput, int &ref_iPos) const override
 

Detailed Description

Basic file name validator. Makes sure that under a given parent folder, the new file name is valid and not already in use by a different file.

Constructor & Destructor Documentation

◆ plFileNameValidator()

plFileNameValidator::plFileNameValidator ( QObject * pParent,
plStringView sParentFolder,
plStringView sCurrentName )

Constructor. Validator requires the current location and name of the file.

Parameters
sParentFolderAbsolute path to the location of the file.
sCurrentNameCurrent filename. If set, this name is marked as valid, even though it is already in use.

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