Utils::PathChooser Class
class Utils::PathChooserKlasa PathChooser je kontrola koja omogućuje korisniku odabir puta. Kontrola se sastoji od polja za unos teksta ( QLineEdit ) i gumba "Browse" te je opcionalno moguće izvršiti zamjenu varijabli. Više...
| Header: | #include <PathChooser> |
Javne vrste
| enum | Kind { ExistingDirectory, Directory, File, SaveFile, ExistingCommand, …, Any } |
Javne funkcije
| Utils::FilePath | baseDirectory() const |
| QStringList | commandVersionArguments() const |
| Utils::PathChooser::Kind | expectedKind() const |
| Utils::FilePath | filePath() const |
| bool | isReadOnly() const |
| QString | promptDialogFilter() const |
| QString | promptDialogTitle() const |
| void | setBaseDirectory(const Utils::Lazy<Utils::FilePath> &base) |
| void | setCommandVersionArguments(const QStringList &arguments) |
| void | setExpectedKind(Utils::PathChooser::Kind expected) |
| void | setPromptDialogFilter(const QString &filter) |
| void | setPromptDialogTitle(const QString &title) |
| void | setReadOnly(bool b) |
Javne utičnice
| void | setFilePath(const Utils::FilePath &) |
| void | setPath(const QString &) |
Signali
| void | textChanged(const QString &text) |
Detaljan opis
Ovaj razred ima neku logiku validacije za ugradnju u QWizardPage.
Dokumentacija o vrstama članova
enum PathChooser::Kind
Enum Kind opisuje vrstu puta koju PathChooser smatra valjanom.
| Konstanta | Vrijednost | Opis |
|---|---|---|
Utils::PathChooser::ExistingDirectory | 0 | Postojeći direktorij |
Utils::PathChooser::Directory | 1 | Direktorij koji ne mora postojati |
Utils::PathChooser::File | 2 | Postojeća datoteka |
Utils::PathChooser::SaveFile | 3 | Datoteka koja ne mora postojati |
Utils::PathChooser::ExistingCommand | 4 | Pokrenjiva datoteka koja mora postojati u trenutku odabira |
Utils::PathChooser::Command | 5 | Pokretna datoteka koja može postojati ili ne mora postojati u trenutku odabira (npr. rezultat izgradnje) |
Utils::PathChooser::Any | 6 | Nema ograničenja na odabranu putanju |
Vidi također setExpectedKind() i expectedKind().
Dokumentacija funkcija člana
Utils::PathChooser::Kind PathChooser::expectedKind() const
Vraća vrstu puta koju PathChooser smatra valjanom za odabir.
Napomena: Getter funkcija za svojstvo expectedKind.
Vidi također Utils::PathChooser::Kind i setExpectedKind().
void PathChooser::setExpectedKind(Utils::PathChooser::Kind expected)
Postavlja vrstu puta koju će PathChooser smatrati valjanom za odabir u expected.
Napomena: funkcija zapostavljanje svojstva expectedKind.
Vidi također Utils::PathChooser::Kind i expectedKind().
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.