Skip to content
Permalink
Browse files

Nicer cell sizes in table designer

  • Loading branch information
nyalldawson committed Feb 13, 2020
1 parent 756cb6f commit 0ea024bd95e2cecb22c008ad78be3c28b7f9e3b5
Showing with 8 additions and 0 deletions.
  1. +7 −0 src/gui/tableeditor/qgstableeditorwidget.cpp
  2. +1 −0 src/gui/tableeditor/qgstableeditorwidget.h
@@ -338,6 +338,13 @@ void QgsTableEditorWidget::setTableContents( const QgsTableContents &contents )

mBlockSignals--;
updateHeaders();

if ( mFirstSet )
{
resizeColumnsToContents();
resizeRowsToContents();
mFirstSet = false;
}
emit tableChanged();
}

@@ -404,6 +404,7 @@ class GUI_EXPORT QgsTableEditorWidget : public QTableWidget
QHash< QTableWidgetItem *, QgsNumericFormat * > mNumericFormats;
QMenu *mHeaderMenu = nullptr;
bool mIncludeHeader = false;
bool mFirstSet = true;

friend class QgsTableEditorDelegate;

0 comments on commit 0ea024b

Please sign in to comment.
You can’t perform that action at this time.