![]() |
XII Release 0.1.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 | |
xiiFileNameValidator (QObject *pParent, xiiStringView sParentFolder, xiiStringView 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.
xiiFileNameValidator::xiiFileNameValidator | ( | QObject * | pParent, |
xiiStringView | sParentFolder, | ||
xiiStringView | 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. |