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;
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);
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-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:27 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.