Akonadi
collectionpropertiesdialog.cpp
31 CollectionPropertiesDialogPrivate(CollectionPropertiesDialog *parent, const Akonadi::Collection &collection, const QStringList &pageNames);
45 // We use WA_DeleteOnClose => Don't use dialog as parent otherwise we can't save modified collection.
84 CollectionPropertiesPageFactoryList &operator=(const CollectionPropertiesPageFactoryList &) = delete;
91Q_GLOBAL_STATIC(CollectionPropertiesPageFactoryList, s_pages) // NOLINT(readability-redundant-member-init)
95CollectionPropertiesDialogPrivate::CollectionPropertiesDialogPrivate(CollectionPropertiesDialog *qq,
153 if (page->canHandle(mCollection) && mPageNames.contains(pageName) && !pages.contains(pageName)) {
172 q->connect(buttonBox->button(QDialogButtonBox::Cancel), &QAbstractButton::clicked, q, &QObject::deleteLater);
174 KConfigGroup group(KSharedConfig::openStateConfig(), QStringLiteral("CollectionPropertiesDialog"));
183CollectionPropertiesDialog::CollectionPropertiesDialog(const Collection &collection, QWidget *parent)
190CollectionPropertiesDialog::CollectionPropertiesDialog(const Collection &collection, const QStringList &pages, QWidget *parent)
199 KConfigGroup group(KSharedConfig::openStateConfig(), QStringLiteral("CollectionPropertiesDialog"));
Job that modifies a collection in the Akonadi storage.
Definition collectionmodifyjob.h:62
A generic and extensible dialog for collection properties.
Definition collectionpropertiesdialog.h:43
CollectionPropertiesDialog(const Collection &collection, QWidget *parent=nullptr)
Creates a new collection properties dialog.
Definition collectionpropertiesdialog.cpp:183
~CollectionPropertiesDialog() override
Destroys the collection properties dialog.
Definition collectionpropertiesdialog.cpp:197
void setCurrentPage(const QString &name)
Sets the page to be shown in the tab widget.
Definition collectionpropertiesdialog.cpp:228
DefaultPage
Enumerates the registered default pages which can be displayed.
Definition collectionpropertiesdialog.h:51
static void useDefaultPage(bool use)
Sets whether to use default page or not.
Definition collectionpropertiesdialog.cpp:211
static void registerPage(CollectionPropertiesPageFactory *factory)
Register custom pages for the collection properties dialog.
Definition collectionpropertiesdialog.cpp:203
static QString defaultPageObjectName(DefaultPage page)
Returns the object name of one of the dialog's registered default pages.
Definition collectionpropertiesdialog.cpp:216
A factory class for collection properties dialog pages.
Definition collectionpropertiespage.h:157
A single page in a collection properties dialog.
Definition collectionpropertiespage.h:89
virtual void load(const Collection &collection)=0
Loads the page content from the given collection.
virtual void save(Collection &collection)=0
Saves page content to the given collection.
virtual bool canHandle(const Collection &collection) const
Checks if this page can actually handle the given collection.
Definition collectionpropertiespage.cpp:32
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
virtual QString errorString() const
int error() const
void result(KJob *job)
Helper integration between Akonadi and Qt.
void clicked(bool checked)
void setShortcut(const QKeySequence &key)
virtual void accept()
virtual void reject()
virtual QSize sizeHint() const const override
void accepted()
void rejected()
bool contains(const Key &key) const const
iterator insert(const Key &key, const T &value)
T value(const Key &key) const const
bool isEmpty() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
objectName
void setDefault(bool)
int height() const const
bool isValid() const const
int width() const const
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
Key_Return
CTRL
WA_DeleteOnClose
int addTab(QWidget *page, const QIcon &icon, const QString &label)
count
void setCurrentIndex(int index)
QWidget * widget(int index) const const
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void resize(const QSize &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.