All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QFileSystemModel Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.gui;

import io.qt.*;


/**
 * 

Data model for the local filesystem

*

Java wrapper for Qt class QFileSystemModel

*/ public class QFileSystemModel extends io.qt.core.QAbstractItemModel { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private Object __rcIconProvider = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QFileSystemModel.class); /** *

Java wrapper for Qt enum QFileSystemModel::Option

* * @see Options */ public enum Option implements QtFlagEnumerator { /** *

Representing QFileSystemModel::DontWatchForChanges

*/ DontWatchForChanges(1), /** *

Representing QFileSystemModel::DontResolveSymlinks

*/ DontResolveSymlinks(2), /** *

Representing QFileSystemModel::DontUseCustomDirectoryIcons

*/ DontUseCustomDirectoryIcons(4); static { QtJambi_LibraryUtilities.initialize(); } private Option(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ @Override public @NonNull Options asFlags() { return new Options(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull Options combined(@NonNull Option e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull Options cleared(@NonNull Option e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link Options} from the entries. * @param values entries * @return new flag */ public static @NonNull Options flags(@Nullable Option @NonNull... values) { return new Options(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Option resolve(int value) { switch (value) { case 1: return DontWatchForChanges; case 2: return DontResolveSymlinks; case 4: return DontUseCustomDirectoryIcons; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link Option} */ public static final class Options extends QFlags




© 2015 - 2024 Weber Informatics LLC | Privacy Policy