From d834da0ec9fef77a6461e6a20e541ae07a8d3825 Mon Sep 17 00:00:00 2001 From: Ted Felix Date: Mon, 7 Oct 2024 10:56:29 -0400 Subject: [PATCH] TATSE: Fix sizing issues --- src/gui/editors/tempo/TempoAndTimeSignatureEditor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/editors/tempo/TempoAndTimeSignatureEditor.cpp b/src/gui/editors/tempo/TempoAndTimeSignatureEditor.cpp index 11b38742a..efba0f634 100644 --- a/src/gui/editors/tempo/TempoAndTimeSignatureEditor.cpp +++ b/src/gui/editors/tempo/TempoAndTimeSignatureEditor.cpp @@ -96,8 +96,7 @@ TempoAndTimeSignatureEditor::TempoAndTimeSignatureEditor(timeT openTime) // Create frame and layout. m_frame = new QFrame(this); - m_frame->setMinimumSize(500, 300); - m_frame->setMaximumSize(2200, 1400); + m_frame->setMinimumSize(700, 300); m_mainLayout = new QHBoxLayout(m_frame); m_frame->setLayout(m_mainLayout); setCentralWidget(m_frame); @@ -148,6 +147,9 @@ TempoAndTimeSignatureEditor::TempoAndTimeSignatureEditor(timeT openTime) // Make sure columns have a reasonable amount of space. m_tableWidget->setColumnWidth(0, 110); m_tableWidget->setColumnWidth(1, 120); + QHeaderView *header = m_tableWidget->horizontalHeader(); + // Make sure the last column fills the widget. + header->setStretchLastSection(true); connect(m_tableWidget, &QTableWidget::cellDoubleClicked, this, &TempoAndTimeSignatureEditor::slotPopupEditor);