Utils::PathChooser Class
class Utils::PathChooserRazred PathChooser je nadzorni element, ki uporabniku omogoča izbiro poti. Nadzorni element je sestavljen iz polja » QLineEdit « in gumba »Browse«, po želji pa omogoča tudi zamenjavo spremenljivk. Več...
| Header: | #include <PathChooser> |
Javni tipi
| 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) |
Javni slot
| void | setFilePath(const Utils::FilePath &) |
| void | setPath(const QString &) |
Signali
| void | textChanged(const QString &text) |
Podroben opis
Ta razred vsebuje logiko za preverjanje veljavnosti, namenjeno vgradnji v QWizardPage.
Dokumentacija o tipih članov
enum PathChooser::Kind
Enum »Kind« opisuje vrsto poti, ki jo » PathChooser « šteje za veljavno.
| Konstanta | Vrednost | Opis |
|---|---|---|
Utils::PathChooser::ExistingDirectory | 0 | Obstoječi imenik |
Utils::PathChooser::Directory | 1 | Mapa, ki ni nujno, da obstaja |
Utils::PathChooser::File | 2 | Obstoječa datoteka |
Utils::PathChooser::SaveFile | 3 | Datoteka, ki ni nujno, da obstaja |
Utils::PathChooser::ExistingCommand | 4 | Izvedljiva datoteka, ki mora obstajati v trenutku izbire |
Utils::PathChooser::Command | 5 | Izvedljiva datoteka, ki ob izbiri lahko obstaja ali pa tudi ne (npr. rezultat gradnje) |
Utils::PathChooser::Any | 6 | Brez omejitev glede izbrane poti |
Glej tudi setExpectedKind() in expectedKind().
Dokumentacija o funkcijah članov
Utils::PathChooser::Kind PathChooser::expectedKind() const
Vrne vrsto poti, ki jo sistem za upravljanje z dokumenti ( PathChooser ) obravnava kot veljavno za izbiro.
Glej tudi Utils::PathChooser::Kind in setExpectedKind().
void PathChooser::setExpectedKind(Utils::PathChooser::Kind expected)
Določi vrsto poti, ki jo bo PathChooser obravnaval kot veljavno za izbiro na expected.
Glej tudi Utils::PathChooser::Kind in 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.