[][src]Struct qt_widgets::q_file_dialog::Option

#[repr(transparent)]
pub struct Option(_);

The Options type is a typedef for QFlags<Option>. It stores an OR combination of Option values.

C++ enum: QFileDialog::Option.

C++ documentation:

The Options type is a typedef for QFlags<Option>. It stores an OR combination of Option values.

Methods

impl Option[src]

pub fn to_int(&self) -> c_int[src]

impl Option[src]

pub const ShowDirsOnly: Option[src]

Only show directories in the file dialog. By default both files and directories are shown. (Valid only in the Directory file mode.) (C++ enum variant: ShowDirsOnly = 1)

Don't resolve symlinks in the file dialog. By default symlinks are resolved. (C++ enum variant: DontResolveSymlinks = 2)

pub const DontConfirmOverwrite: Option[src]

Don't ask for confirmation if an existing file is selected. By default confirmation is requested. (C++ enum variant: DontConfirmOverwrite = 4)

pub const DontUseSheet: Option[src]

In previous versions of Qt, the static functions would create a sheet by default if the static function was given a parent. This is no longer supported and does nothing in Qt 4.5, The static functions will always be an application modal dialog. If you want to use sheets, use QFileDialog::open() instead. (C++ enum variant: DontUseSheet = 8)

pub const DontUseNativeDialog: Option[src]

Don't use the native file dialog. By default, the native file dialog is used unless you use a subclass of QFileDialog that contains the Q_OBJECT macro, or the platform does not have a native dialog of the type that you require. (C++ enum variant: DontUseNativeDialog = 16)

pub const ReadOnly: Option[src]

Indicates that the model is readonly. (C++ enum variant: ReadOnly = 32)

pub const HideNameFilterDetails: Option[src]

Indicates if the file name filter details are hidden or not. (C++ enum variant: HideNameFilterDetails = 64)

pub const DontUseCustomDirectoryIcons: Option[src]

Always use the default directory icon. Some platforms allow the user to set a different icon. Custom icon lookup cause a big performance impact over network or removable drives. Setting this will enable the QFileIconProvider::DontUseCustomDirectoryIcons option in the icon provider. This enum value was added in Qt 5.2. (C++ enum variant: DontUseCustomDirectoryIcons = 128)

Trait Implementations

impl Eq for Option[src]

impl Clone for Option[src]

impl PartialEq<Option> for Option[src]

impl From<i32> for Option[src]

impl From<Option> for c_int[src]

impl From<Option> for QFlags<Option>[src]

impl Copy for Option[src]

impl<T: Into<QFlags<Option>>> BitOr<T> for Option[src]

type Output = QFlags<Option>

The resulting type after applying the | operator.

impl Debug for Option[src]

Auto Trait Implementations

impl Send for Option

impl Unpin for Option

impl Sync for Option

impl UnwindSafe for Option

impl RefUnwindSafe for Option

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]