Utils::PathChooser Class
class Utils::PathChooserThe PathChooser class is a control that lets the user choose a path. The control consist of a QLineEdit and a "Browse" button, and is optionally able to perform variable substitution. More...
| Header: | #include <pathchooser.h> |
| Inherits: | QWidget |
Public Functions
| Utils::PathChooserKind | expectedKind() const |
| void | setExpectedKind(Utils::PathChooserKind expected) |
| void | setValueAlternatives(const Utils::FilePaths &candidates) |
Signals
| void | beforeBrowsing() |
| void | browsingFinished() |
| void | editingFinished() |
| void | rawPathChanged() |
| void | returnPressed() |
| void | textChanged(const QString &text) |
| void | validChanged(bool validState) |
Static Public Members
| Utils::FancyLineEdit::AsyncValidationFuture | validateExpandedPath(const QString &text, const Utils::FilePath &expandedPath, Utils::PathChooserKind expectedKind) |
Detailed Description
This class has some validation logic for embedding into QWizardPage.
Member Function Documentation
[signal] void PathChooser::beforeBrowsing()
[signal] void PathChooser::browsingFinished()
[signal] void PathChooser::editingFinished()
Utils::PathChooserKind PathChooser::expectedKind() const
Returns the kind of path the PathChooser considers valid to select.
See also Utils::PathChooserKind and setExpectedKind().
[signal] void PathChooser::rawPathChanged()
[signal] void PathChooser::returnPressed()
void PathChooser::setExpectedKind(Utils::PathChooserKind expected)
Sets the kind of path the PathChooser will consider valid to select to expected.
See also Utils::PathChooserKind and expectedKind().
void PathChooser::setValueAlternatives(const Utils::FilePaths &candidates)
Offers candidates in an Alternatives menu.
A candidate on the device of a remote base directory reads as it does on that device, without scheme and host, as the base directory resolves it.
[signal] void PathChooser::textChanged(const QString &text)
[signal] void PathChooser::validChanged(bool validState)
[static] Utils::FancyLineEdit::AsyncValidationFuture PathChooser::validateExpandedPath(const QString &text, const Utils::FilePath &expandedPath, Utils::PathChooserKind expectedKind)
Validates text, which a path chooser expanded to expandedPath, the way the default validation function of a path chooser expecting expectedKind does.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.