diff --git a/core/src/tableview2d.ui b/core/src/tableview2d.ui index 0094dba..49b37e6 100644 --- a/core/src/tableview2d.ui +++ b/core/src/tableview2d.ui @@ -6,8 +6,8 @@ 0 0 - 1116 - 431 + 1009 + 529 @@ -15,7 +15,10 @@ - + + + QLayout::SetDefaultConstraint + diff --git a/core/src/tableviewnew3d.cpp b/core/src/tableviewnew3d.cpp index b951d36..98bc091 100644 --- a/core/src/tableviewnew3d.cpp +++ b/core/src/tableviewnew3d.cpp @@ -27,8 +27,8 @@ void TableViewNew3D::addHotkey(int key,Qt::KeyboardModifier modifier) void TableViewNew3D::resizeEvent(QResizeEvent *evt) { - m_itemWidth = this->width() / 25; - m_itemHeight = this->height() / 20; + m_itemWidth = this->width() / (m_columnCount + 1); + m_itemHeight = this->height() / (m_rowCount + 1); this->update(); }