Scribus
Open source desktop publishing at your fingertips
sctablewidget.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef SCTABLEWIDGET_H
8 #define SCTABLEWIDGET_H
9 
10 #include <QTableWidget>
11 #include <QEvent>
12 #include <QHash>
13 #include <QPair>
14 
15 
16 class ScTableWidget : public QTableWidget
17 {
18  Q_OBJECT
19 
20  public:
21  ScTableWidget ( QWidget * parent = 0 );
22  ScTableWidget ( int rows, int columns, QWidget * parent = 0 );
23  ~ScTableWidget ();
24  void setCellWidget ( int row, int column, QWidget * widget );
25  void removeCellWidget ( int row, int column );
26  protected:
27  bool eventFilter(QObject *obj, QEvent *event);
28 
29  private:
30  QHash<QWidget*, QPair<int, int> > widgetPositions;
31 
32  protected slots:
33  void comboBoxReceiver(int i);
34 };
35 
36 #endif
Definition: sctablewidget.h:16