knode
kncollectionview.cpp
Go to the documentation of this file.
56 connect( am, SIGNAL(accountRemoved(KNNntpAccount::Ptr)), SLOT(removeAccount(KNNntpAccount::Ptr)) );
57 connect( am, SIGNAL(accountModified(KNNntpAccount::Ptr)), SLOT(updateAccount(KNNntpAccount::Ptr)) );
361 QBrush brush = KColorScheme( QPalette::Active, KColorScheme::Selection ).decoration( KColorScheme::HoverColor ).color();
422 if ( !static_cast<KNFolder*>( fti->collection() )->isRootFolder() ) { // don't drop articles on the root folder
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
void removeAccount(KNNntpAccount::Ptr a)
Definition: kncollectionview.cpp:126
int sortColumn() const
const QMimeData * mimeData() const
int addTotalColumn(const QString &headerLabel)
Adds a special "Total" column to this view and returns its logical index.
Definition: foldertreewidget.cpp:261
void contextMenu(QTreeWidgetItem *item, const QPoint &position)
This signal is emitted when a context menu should be displayed for item as global position position...
void addAccount(KNNntpAccount::Ptr a)
Definition: kncollectionview.cpp:109
virtual void dropEvent(QDropEvent *event)
Handles actual droping of articles or folder.
Definition: kncollectionview.cpp:394
void setMimeData(QMimeData *data)
A folder tree node to be used with FolderTreeWidget.
Definition: foldertreewidget.h:225
A tree widget useful for displaying a tree of folders containing messages.
Definition: foldertreewidget.h:73
virtual void paintEvent(QPaintEvent *event)
Definition: kncollectionview.cpp:353
virtual bool hasFormat(const QString &mimeType) const
void setPixmap(const QPixmap &pixmap)
const QPoint & pos() const
QWidget * viewport() const
void sortByColumn(int column, Qt::SortOrder order)
boost::shared_ptr< KNNntpAccount > Ptr
Shared pointer to a KNNntpAccount.
Definition: knnntpaccount.h:62
int addUnreadColumn(const QString &headerLabel)
Adds a special "Unread" column to this view and returns its logical index.
Definition: foldertreewidget.cpp:275
void update()
KNCollection::Ptr collection() const
Returns the collection this item represents.
Definition: kncollectionviewitem.h:46
const QColor & color() const
Qt::DropAction exec(QFlags< Qt::DropAction > supportedActions)
void drawRect(const QRectF &rectangle)
QString number(int n, int base)
FolderType
Folder type information Please note that this list should be kept in the order of items that one want...
Definition: foldertreewidget.h:245
void setPen(const QColor &color)
void setFocus()
virtual void dragLeaveEvent(QDragLeaveEvent *event)
Reimplemented to hide the drop indicator when the drag leave the view.
Definition: kncollectionview.cpp:378
bool restoreLayout(KConfigGroup &group, const QString &keyName=QString())
Attempts to restore the layout of this tree from the specified key of the specified KConfigGroup...
Definition: treewidget.cpp:91
virtual QMimeData * mimeData(const QList< QTreeWidgetItem * > items) const
QTreeWidgetItem * itemAt(const QPoint &p) const
void setEditTriggers(QFlags< QAbstractItemView::EditTrigger > triggers)
typedef Iterator
virtual void dragEnterEvent(QDragEnterEvent *event)
Reimplement to only accept MIME types which are accepted in dropEvent.
Definition: kncollectionview.cpp:369
QTreeWidgetItem * currentItem() const
void setActive(QTreeWidgetItem *item)
Selects item and set it the current item.
Definition: kncollectionview.cpp:286
virtual void startDrag(Qt::DropActions supportedActions)
Reimplemented to perform the actual drag operations of folders.
Definition: kncollectionview.cpp:467
void handleDragNDropEvent(QDropEvent *event, bool enforceDrop)
Called by dragMoveEvent() and dropEvent().
Definition: kncollectionview.cpp:402
bool saveLayout(KConfigGroup &group, const QString &keyName=QString()) const
Stores the layout of this tree view to the specified KConfigGroup.
Definition: treewidget.cpp:72
QRect rect() const
void setHidden(bool hide)
iterator end()
virtual void dragMoveEvent(QDragMoveEvent *event)
Reimplemented to accept the event only when the target folder can be dropped articles or folders...
Definition: kncollectionview.cpp:386
void setFont(const QFont &)
bool isValid() const
bool canMoveFolder(KNFolder::Ptr f, KNFolder::Ptr p)
Returns true if the folder f can be moved under a new parent p.
Definition: knfoldermanager.cpp:199
void setCurrentItem(QTreeWidgetItem *item)
void activateFolder(KNFolder::Ptr f)
Definition: kncollectionview.cpp:267
void setExpanded(bool expand)
QRect visualItemRect(const QTreeWidgetItem *item) const
void setDisabled(bool disabled)
typedef DropActions
void setSelected(bool select)
void updateAccount(KNNntpAccount::Ptr a)
Definition: kncollectionview.cpp:141
Definition: kncollection.h:36
virtual void contextMenuEvent(QContextMenuEvent *event)
Emits the signal contextMenu() to display a context menu on items of the view.
Definition: kncollectionview.cpp:343
virtual QStringList mimeTypes() const
Returns the "x-knode-drag/folder" mime-type for drag&droping of folders within this view...
Definition: kncollectionview.cpp:460
void setData(const QString &mimeType, const QByteArray &data)
KNCollectionView(QWidget *parent)
Definition: kncollectionview.cpp:36
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int labelColumnIndex() const
Returns the logical index of the "Label" column or -1 if such a column has not been added (yet)...
Definition: foldertreewidget.h:108
void removeFolder(KNFolder::Ptr f)
Definition: kncollectionview.cpp:226
iterator begin()
void setDropIndicatorShown(bool enable)
void setDragEnabled(bool enable)
QTreeWidgetItem * takeChild(int index)
void updateFolder(KNFolder::Ptr f)
Definition: kncollectionview.cpp:274
int addLabelColumn(const QString &headerLabel)
Adds a special "Label" column to this view and returns its logical index.
Definition: foldertreewidget.cpp:244
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.