Properly uncheck insert table toolbutton

Fix for bug #12801
This commit is contained in:
Daniel Ramoeller 2023-06-10 10:22:26 +02:00 committed by Stephan Witt
parent 066e91a2fe
commit ca5a75b23e
2 changed files with 8 additions and 0 deletions

View File

@ -63,6 +63,13 @@ void InsertTableWidget::show(bool show)
} }
void InsertTableWidget::hideEvent(QHideEvent * event)
{
QWidget::hideEvent(event);
visible(false);
}
void InsertTableWidget::resetGeometry() void InsertTableWidget::resetGeometry()
{ {
QPoint p = parentWidget()->mapToGlobal(parentWidget()->geometry().bottomLeft()); QPoint p = parentWidget()->mapToGlobal(parentWidget()->geometry().bottomLeft());

View File

@ -41,6 +41,7 @@ protected Q_SLOTS:
void mouseReleaseEvent(QMouseEvent *) override; void mouseReleaseEvent(QMouseEvent *) override;
void mousePressEvent(QMouseEvent *) override; void mousePressEvent(QMouseEvent *) override;
void paintEvent(QPaintEvent *) override; void paintEvent(QPaintEvent *) override;
void hideEvent(QHideEvent * event);
private: private:
//! update the geometry //! update the geometry