Na ovoj stranici

Utils::PathChooser Class

class Utils::PathChooser

Klasa 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.

KonstantaVrijednostOpis
Utils::PathChooser::ExistingDirectory0Postojeći direktorij
Utils::PathChooser::Directory1Direktorij koji ne mora postojati
Utils::PathChooser::File2Postojeća datoteka
Utils::PathChooser::SaveFile3Datoteka koja ne mora postojati
Utils::PathChooser::ExistingCommand4Pokrenjiva datoteka koja mora postojati u trenutku odabira
Utils::PathChooser::Command5Pokretna datoteka koja može postojati ili ne mora postojati u trenutku odabira (npr. rezultat izgradnje)
Utils::PathChooser::Any6Nema 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.