Baloo Widgets
11#ifndef _BALOO_FILE_METADATAWIDGET_H
12#define _BALOO_FILE_METADATAWIDGET_H
14#include "widgets_export.h"
26class FileMetaDataWidgetPrivate;
31enum class DateFormats {
36enum class ConfigurationMode {
46class BALOO_WIDGETS_EXPORT FileMetaDataWidget :
public QWidget
49 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly)
50 Q_PROPERTY(DateFormats dateFormat READ dateFormat WRITE setDateFormat)
53 explicit FileMetaDataWidget(QWidget *parent =
nullptr);
54 ~FileMetaDataWidget()
override;
61 void setItems(
const KFileItemList &items);
62 KFileItemList items()
const;
68 void setReadOnly(
bool readOnly);
69 bool isReadOnly()
const;
75 void setDateFormat(
const DateFormats format);
76 DateFormats dateFormat()
const;
79 QSize sizeHint()
const override;
85 void setConfigurationMode(ConfigurationMode mode);
92 void urlActivated(
const QUrl &url);
99 void metaDataRequestFinished(
const KFileItemList &items);
102 friend class FileMetaDataWidgetPrivate;
103 std::unique_ptr<FileMetaDataWidgetPrivate>
const d;
105 Q_PRIVATE_SLOT(d,
void slotLoadingFinished())
109Q_DECLARE_METATYPE(Baloo::DateFormats)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:12 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.