Skip to content

Commit

Permalink
TATSE: Fix sizing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tedfelix committed Oct 7, 2024
1 parent 86cfd10 commit d834da0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/editors/tempo/TempoAndTimeSignatureEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit d834da0

Please sign in to comment.