SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
extension
qt
qtTableWidget.h
1
//=========================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//=========================================================================
10
11
// .NAME qtTableWidget - a customized table widget.
12
// .SECTION Description
13
// A convenience QTableWidget with extra features:
14
// 1. Automatic size hints based on contents
15
// 2. A check box added in a header if items have check boxes
16
// 3. Navigation through columns of top level items on Tab.
17
// 4. Signal emitted when user navigates beyond end of the table giving an
18
// opportunity to the lister to grow the table.
19
// 5. Customized Drag-n-Drop
20
// .SECTION Caveats
21
22
#ifndef smtk_extension_qtTableWidget_h
23
#define smtk_extension_qtTableWidget_h
24
25
#include "smtk/extension/qt/Exports.h"
26
#include <QTableWidget>
27
28
class
QKeyEvent;
29
30
namespace
smtk
31
{
32
namespace
extension
33
{
34
class
SMTKQTEXT_EXPORT
qtTableWidget
:
public
QTableWidget
35
{
36
Q_OBJECT
37
38
public
:
39
qtTableWidget
(QWidget* p =
nullptr
);
40
~
qtTableWidget
()
override
;
41
42
QModelIndexList getSelectedIndexes()
const
{
return
this->selectedIndexes(); }
43
public
Q_SLOTS:
44
45
Q_SIGNALS:
46
void
keyPressed(QKeyEvent*);
47
48
protected
Q_SLOTS:
49
void
keyPressEvent(QKeyEvent*)
override
;
50
};
51
};
// namespace extension
52
};
// namespace smtk
53
54
#endif // smtk_extension_qtTableWidget_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::extension::qtTableWidget
Definition:
qtTableWidget.h:34
Generated by
1.8.17