2
/**************************************************************************
4
* Regina - A Normal Surface Theory Calculator *
7
* Copyright (c) 1999-2014, Ben Burton *
8
* For further details contact Ben Burton (bab@debian.org). *
10
* This program is free software; you can redistribute it and/or *
11
* modify it under the terms of the GNU General Public License as *
12
* published by the Free Software Foundation; either version 2 of the *
13
* License, or (at your option) any later version. *
15
* As an exception, when this program is distributed through (i) the *
16
* App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or *
17
* (iii) Google Play by Google Inc., then that store may impose any *
18
* digital rights management, device limits and/or redistribution *
19
* restrictions that are required by its terms of service. *
21
* This program is distributed in the hope that it will be useful, but *
22
* WITHOUT ANY WARRANTY; without even the implied warranty of *
23
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
24
* General Public License for more details. *
26
* You should have received a copy of the GNU General Public *
27
* License along with this program; if not, write to the Free *
28
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
29
* MA 02110-1301, USA. *
31
**************************************************************************/
35
/*! \file edittableview.h
36
* \brief A subclass of QTableView with enhancements for use in packet editors.
39
#ifndef __EDITTABLEVIEW_H
40
#define __EDITTABLEVIEW_H
45
* A subclass of QTableView for use inside a packet editor.
47
class EditTableView : public QTableView {
49
EditTableView(QWidget* parent = 0);
52
* Finish any cell editing operation that might be in progress.
57
inline EditTableView::EditTableView(QWidget* parent) :
61
inline void EditTableView::endEdit() {
62
QModelIndex index = currentIndex();
63
currentChanged(index, index);