Libkleo
12#include "kleo_export.h"
20class KLEO_EXPORT FileNameRequester :
public QWidget
23 Q_PROPERTY(QString fileName READ fileName WRITE setFileName)
24 Q_PROPERTY(
bool existingOnly READ existingOnly WRITE setExistingOnly)
26 explicit FileNameRequester(QWidget *parent =
nullptr);
27 explicit FileNameRequester(
QDir::Filters filter, QWidget *parent =
nullptr);
28 ~FileNameRequester()
override;
30 void setFileName(
const QString &name);
31 QString fileName()
const;
33 void setExistingOnly(
bool on);
34 bool existingOnly()
const;
39 void setNameFilter(
const QString &nameFilter);
40 QString nameFilter()
const;
42 void setAccessibleNameOfLineEdit(
const QString &name);
43 void setButtonHint(
const QString &text);
46 void fileNameChanged(
const QString &filename);
49 bool event(QEvent *event)
override;
52 virtual QString requestFileName();
55 class FileNameRequesterPrivate;
56 std::unique_ptr<FileNameRequesterPrivate>
const d;
Q_SCRIPTABLE bool setFilter(const QString &filter)
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
QFuture< void > filter(QThreadPool *pool, Sequence &sequence, KeepFunctor &&filterFunction)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:12 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.