![]() |
Plasma Engine
2.0
|
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>
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 |
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.
plFileNameValidator::plFileNameValidator | ( | QObject * | pParent, |
plStringView | sParentFolder, | ||
plStringView | sCurrentName ) |
Constructor. Validator requires the current location and name of the file.
sParentFolder | Absolute path to the location of the file. |
sCurrentName | Current filename. If set, this name is marked as valid, even though it is already in use. |