tuchulcha  0.10.1
Graphical Workflow Configuration Editor
QCopyListView Class Reference

customized variant of QListView with reworked handling of copy shortcut More...

#include <QCopyListView.h>

Inheritance diagram for QCopyListView:

Public Member Functions

 QCopyListView (QWidget *parent=0)
 default constructor More...
 
QMimeData * getSelectedContent () const
 get mime-data representation of selected indices More...
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event)
 reworked key press event handler able to copy multipe lines into the clipboard More...
 

Detailed Description

QAbstractItemView only copies one currently active cell to the clipboard. For a log viewer, also a continguous selection (multiple log lines) sould be able to be copied into the clipboard. This is handled by a reworked variant of the keyPressEvent handler.

Definition at line 35 of file QCopyListView.h.

Constructor & Destructor Documentation

QCopyListView::QCopyListView ( QWidget *  parent = 0)
explicit
Parameters
[in]parentparent widget

Definition at line 32 of file QCopyListView.cpp.

Member Function Documentation

QMimeData * QCopyListView::getSelectedContent ( ) const
Returns
a plain text and a html representation

Definition at line 40 of file QCopyListView.cpp.

void QCopyListView::keyPressEvent ( QKeyEvent *  event)
protectedvirtual
Parameters
[in]eventkey event

Definition at line 96 of file QCopyListView.cpp.

References getSelectedContent().


The documentation for this class was generated from the following files: