tuchulcha  0.10.1
Graphical Workflow Configuration Editor
QCopyListView.h
Go to the documentation of this file.
1 /* Copyright (C) 2013 Jens-Malte Gottfried
2 
3  This file is part of Tuchulcha.
4 
5  Tuchulcha is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Tuchulcha is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Tuchulcha. If not, see <http://www.gnu.org/licenses/>.
17  */
24 #ifndef QCOPYLISTVIEW_H
25 #define QCOPYLISTVIEW_H
26 
27 #include <QListView>
28 
30 
35 class QCopyListView : public QListView
36 {
37  Q_OBJECT
38 public:
40  explicit QCopyListView(QWidget * parent = 0 );
41  virtual ~QCopyListView();
43 
44  QMimeData* getSelectedContent() const;
45 
46 protected:
49  virtual void keyPressEvent(QKeyEvent * event );
50 };
51 
52 #endif // QCOPYLISTVIEW_H
customized variant of QListView with reworked handling of copy shortcut
Definition: QCopyListView.h:35
QMimeData * getSelectedContent() const
get mime-data representation of selected indices
QCopyListView(QWidget *parent=0)
default constructor
virtual void keyPressEvent(QKeyEvent *event)
reworked key press event handler able to copy multipe lines into the clipboard