Mailcommon
favoritecollectionwidget.cpp
41FavoriteCollectionWidget::FavoriteCollectionWidget(MailCommon::MailCommonSettings *settings, KXMLGUIClient *xmlGuiClient, QWidget *parent)
120 d->listMode->setData(QVariant(MailCommon::MailCommonSettings::EnumFavoriteCollectionViewMode::ListMode));
130 d->iconMode->setData(QVariant(MailCommon::MailCommonSettings::EnumFavoriteCollectionViewMode::IconMode));
234 p.drawText(QRect(0, 0, width(), height()), Qt::AlignCenter, i18n("Drop your favorite folders hereā¦"));
262 || (!draggingCollection && droppingOnCollection)) { // Dropping emails onto a favorite collection
314 // skip EntityListView logic (we want to reorder favorites, not trigger moving/copying of actual folders)
bool isValid() const
static Collection fromUrl(const QUrl &url)
QAction * addAction(const QString &name, const QObject *receiver=nullptr, const char *member=nullptr)
virtual KActionCollection * actionCollection() const
The FavoriteCollectionWidget class.
Definition favoritecollectionwidget.h:25
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
KActionMenu * createMenu(KColorSchemeManager *manager, QObject *parent=nullptr)
KGuiItem ok()
void setDragEnabled(bool enable)
virtual void dragEnterEvent(QDragEnterEvent *event) override
virtual void dragMoveEvent(QDragMoveEvent *event) override
virtual void dropEvent(QDropEvent *event) override
DropIndicatorPosition dropIndicatorPosition() const const
virtual bool event(QEvent *event) override
iconSize
QAbstractItemModel * model() const const
virtual void mousePressEvent(QMouseEvent *event) override
virtual void paintEvent(QPaintEvent *event) override
QWidget * viewport() const const
void setCheckable(bool)
void setChecked(bool)
QVariant data() const const
void setData(const QVariant &data)
void triggered(bool checked)
void setAlpha(int alpha)
ApplicationPaletteChange
Type type() const const
void setItalic(bool enable)
GeneralFont
QFont systemFont(SystemFont type)
ListMode
virtual void dragMoveEvent(QDragMoveEvent *e) override
virtual void dropEvent(QDropEvent *event) override
virtual void startDrag(Qt::DropActions supportedActions) override
viewMode
QList< QUrl > urls() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T qobject_cast(QObject *object)
QObject * sender() const const
Qt::MouseButton button() const const
AlignCenter
MoveAction
NoFocus
MiddleButton
int toInt(bool *ok) const const
void setAcceptDrops(bool on)
void setFont(const QFont &)
height
palette
size
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.