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)) );
351 QBrush brush = KColorScheme( QPalette::Active, KColorScheme::Selection ).decoration( KColorScheme::HoverColor ).color();
412 if ( !static_cast<KNFolder*>( fti->collection() )->isRootFolder() ) { // don't drop articles on the root folder
void removeAccount(KNNntpAccount::Ptr a)
Definition: kncollectionview.cpp:126
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:384
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:343
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
KNCollection::Ptr collection() const
Returns the collection this item represents.
Definition: kncollectionviewitem.h:46
static int setCurrentItem(K3ListBox *box, const QString &s)
Definition: kscoringeditor.cpp:51
FolderType
Folder type information Please note that this list should be kept in the order of items that one want...
Definition: foldertreewidget.h:245
virtual void dragLeaveEvent(QDragLeaveEvent *event)
Reimplemented to hide the drop indicator when the drag leave the view.
Definition: kncollectionview.cpp:368
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 void dragEnterEvent(QDragEnterEvent *event)
Reimplement to only accept MIME types which are accepted in dropEvent.
Definition: kncollectionview.cpp:359
void setActive(QTreeWidgetItem *item)
Selects item and set it the current item.
Definition: kncollectionview.cpp:276
virtual void startDrag(Qt::DropActions supportedActions)
Reimplemented to perform the actual drag operations of folders.
Definition: kncollectionview.cpp:457
void handleDragNDropEvent(QDropEvent *event, bool enforceDrop)
Called by dragMoveEvent() and dropEvent().
Definition: kncollectionview.cpp:392
bool saveLayout(KConfigGroup &group, const QString &keyName=QString()) const
Stores the layout of this tree view to the specified KConfigGroup.
Definition: treewidget.cpp:72
virtual void dragMoveEvent(QDragMoveEvent *event)
Reimplemented to accept the event only when the target folder can be dropped articles or folders...
Definition: kncollectionview.cpp:376
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 activateFolder(KNFolder::Ptr f)
Definition: kncollectionview.cpp:257
void updateAccount(KNNntpAccount::Ptr a)
Definition: kncollectionview.cpp:141
Definition: kncollection.h:34
virtual void contextMenuEvent(QContextMenuEvent *event)
Emits the signal contextMenu() to display a context menu on items of the view.
Definition: kncollectionview.cpp:333
virtual QStringList mimeTypes() const
Returns the "x-knode-drag/folder" mime-type for drag&droping of folders within this view...
Definition: kncollectionview.cpp:450
KNCollectionView(QWidget *parent)
Definition: kncollectionview.cpp:36
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:216
void updateFolder(KNFolder::Ptr f)
Definition: kncollectionview.cpp:264
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.