26 Table(QWidget* _parentWidget = (QWidget*)
nullptr);
27 Table(
int _rows,
int _columns, QWidget* _parentWidget = (QWidget*)
nullptr);
34 virtual void setupFromConfig(
const TableCfg& _config);
35 virtual TableCfg createConfig(
void)
const;
37 void setContentChanged(
bool _changed =
true);
40 void setSelectedCellsBackground(
const ot::Color& _color);
41 void setSelectedCellsBackground(
const QColor& _color);
43 void prepareForDataChange(
void);
46 void saveRequested(
void);
51 virtual void showEvent(QShowEvent* _event)
override;
52 virtual void hideEvent(QHideEvent* _event)
override;
59 void slotSaveRequested(
void);
60 void slotCellDataChanged(
int _row,
int _column);
61 void slotRestoreColumnSize(
int _column);
62 void slotResizeColumnToContent(
int _column);
63 void slotRestoreRowSize(
int _row);
64 void slotResizeRowToContent(
int _row);
68 void resizeColumnsToContentIfNeeded(
void);
69 void resizeRowsToContentIfNeeded(
void);
70 void setResizeRequired(
void);
73 bool m_resizeRequired;
74 bool m_contentChanged;
75 std::vector<int> m_columnWidthBuffer;
76 std::vector<int> m_rowHeightBuffer;
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14