26 static QRect getSelectionBoundingRect(
const QList<QTableWidgetSelectionRange>& _selections);
28 Table(QWidget* _parentWidget = (QWidget*)
nullptr);
29 Table(
int _rows,
int _columns, QWidget* _parentWidget = (QWidget*)
nullptr);
36 virtual void setupFromConfig(
const TableCfg& _config);
37 virtual TableCfg createConfig(
void)
const;
39 void setContentChanged(
bool _changed =
true);
42 void setSelectedCellsBackground(
const ot::Color& _color);
43 void setSelectedCellsBackground(
const QColor& _color);
45 void prepareForDataChange(
void);
54 void slotSaveRequested(
void);
59 virtual void showEvent(QShowEvent* _event)
override;
60 virtual void hideEvent(QHideEvent* _event)
override;
65 void slotCellDataChanged(
int _row,
int _column);
66 void slotRestoreColumnSize(
int _column);
67 void slotResizeColumnToContent(
int _column);
68 void slotRestoreRowSize(
int _row);
69 void slotResizeRowToContent(
int _row);
73 void resizeColumnsToContentIfNeeded(
void);
74 void resizeRowsToContentIfNeeded(
void);
75 void setResizeRequired(
void);
78 bool m_resizeRequired;
79 bool m_contentChanged;
80 std::vector<int> m_columnWidthBuffer;
81 std::vector<int> m_rowHeightBuffer;
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14