Spreadsheet: Double click separator to resize to content
Qt handles resize to content on double clicking the separator in the header, by default. However this does not work in FreeCAD. There are no comments on why this was done and is therefore treated as bug instead of feature. Manual testing has been performed after the change and: * Scaling by double clicking separator in header works * Sizes are correctly stored in sheet when resizing to content
This commit is contained in:
committed by
Chris Hennes
parent
250107301c
commit
8ea82a849c
@@ -92,14 +92,6 @@ void SpreadsheetDelegate::onEditorFinishedWithKey(int key, Qt::KeyboardModifiers
|
||||
Q_EMIT finishedWithKey(key, modifiers);
|
||||
}
|
||||
|
||||
QSize SpreadsheetDelegate::sizeHint(const QStyleOptionViewItem& option,
|
||||
const QModelIndex& index) const
|
||||
{
|
||||
Q_UNUSED(option);
|
||||
Q_UNUSED(index);
|
||||
return {};
|
||||
}
|
||||
|
||||
static inline void drawBorder(QPainter* painter,
|
||||
const QStyleOptionViewItem& option,
|
||||
unsigned flags,
|
||||
|
||||
@@ -47,8 +47,6 @@ public:
|
||||
void setModelData(QWidget* editor,
|
||||
QAbstractItemModel* model,
|
||||
const QModelIndex& index) const override;
|
||||
|
||||
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override;
|
||||
void paint(QPainter* painter,
|
||||
const QStyleOptionViewItem& option,
|
||||
const QModelIndex& index) const override;
|
||||
|
||||
Reference in New Issue
Block a user