LocalFileDelegate QML Type

Displays a file name, its icon and some meta info. More...

Import Statement: import org.nephros.sailfish.OBSMaster 1.0

Properties

Methods

Detailed Description

Property Documentation

fileSize : string

file size, formatted from the size property in the model


indicator : Item

Unused here, to be filled by inheritants.


mimeType : string

MIME type, from the property of the same name in the model. If this is empty or undefined, the icon will be selected internally from the fileName property. Otherwise, Silica's iconForMimeType() is used.


note : string

Additional text to add to the metadata attributes to be displayed.


oscstatus : string

Status of local file. can be one of:

  • ' ' no modifications
  • 'A' Added
  • 'C' Conflicted
  • 'D' Deleted
  • 'M' Modified
  • 'R' Replaced (file was deleted and added again afterwards)
  • '?' item is not under version control
  • '!' item is missing (removed by non-osc command) or incomplete
  • 'S' item is skipped (item exceeds a file size limit or is _service:* file)
  • 'F' Frozen (use "osc pull" to merge conflicts) (package-only state)

Method Documentation

iconForNoMimeType()

Returns the url of a icon image, determined from the fileName. Inspired by Silica's iconForMimeType() but necessary for OBS because a remote result list does not have MIME type information.



OBS Master Documentation Copyright (c) 2023 The OBS Master contributors. This document may be used under the terms of the Creative Commons Attribution Share Alike 4.0 International License.