• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

ark

  • sources
  • kde-4.14
  • kdeutils
  • ark
  • part
archiveview.h
Go to the documentation of this file.
1 /*
2  * ark -- archiver for the KDE project
3  *
4  * Copyright (C) 2008 Harald Hvaal <haraldhv (at@at) stud.ntnu.no>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  *
20  */
21 
22 #ifndef ARCHIVEVIEW_H
23 #define ARCHIVEVIEW_H
24 
25 #include <QTreeView>
26 
27 class ArchiveView : public QTreeView
28 {
29  Q_OBJECT
30 
31 public:
32  ArchiveView(QWidget *parent = 0);
33  virtual void dragEnterEvent(class QDragEnterEvent * event);
34  virtual void dropEvent(class QDropEvent * event);
35  virtual void dragMoveEvent(class QDragMoveEvent * event);
36  virtual void startDrag(Qt::DropActions supportedActions);
37 
38  void setModel(QAbstractItemModel *model);
39 
40 protected slots:
41  void slotClicked(const QModelIndex & index);
42  void slotDoubleClicked(const QModelIndex & index);
43 
44 private slots:
45  void updateMouseButtons();
46 
47 signals:
48  void itemTriggered(const QModelIndex & index);
49 
50 private:
51  Qt::MouseButtons m_mouseButtons; // FIXME: workaround until QTBUG-1067 is resolved
52 };
53 
54 #endif /* ARCHIVEVIEW_H */
QModelIndex
ArchiveView::itemTriggered
void itemTriggered(const QModelIndex &index)
QWidget
ArchiveView::dragEnterEvent
virtual void dragEnterEvent(class QDragEnterEvent *event)
Definition: archiveview.cpp:106
ArchiveView::slotDoubleClicked
void slotDoubleClicked(const QModelIndex &index)
Definition: archiveview.cpp:67
QDragMoveEvent
ArchiveView::startDrag
virtual void startDrag(Qt::DropActions supportedActions)
Definition: archiveview.cpp:92
QDropEvent
ArchiveView::dragMoveEvent
virtual void dragMoveEvent(class QDragMoveEvent *event)
Definition: archiveview.cpp:131
ArchiveView::ArchiveView
ArchiveView(QWidget *parent=0)
Definition: archiveview.cpp:32
ArchiveView::dropEvent
virtual void dropEvent(class QDropEvent *event)
Definition: archiveview.cpp:119
QAbstractItemView::event
virtual bool event(QEvent *event)
Qt::MouseButtons
typedef MouseButtons
QDragEnterEvent
QTreeView
Qt::DropActions
typedef DropActions
ArchiveView::slotClicked
void slotClicked(const QModelIndex &index)
Definition: archiveview.cpp:50
QAbstractItemModel
ArchiveView::setModel
void setModel(QAbstractItemModel *model)
Definition: archiveview.cpp:74
ArchiveView
Definition: archiveview.h:27
QAbstractItemView::model
QAbstractItemModel * model() const
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ark

Skip menu "ark"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal