mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Tweek: resize the settings table row heights.
This commit is contained in:
parent
a794bf1dba
commit
44140931ae
@ -366,6 +366,10 @@ void MixerCurve::showEvent(QShowEvent *event)
|
||||
m_settings->resizeColumnsToContents();
|
||||
m_settings->setColumnWidth(0,(m_settings->width()- m_settings->verticalHeader()->width()));
|
||||
|
||||
int h = (m_settings->height() - m_settings->horizontalHeader()->height()) / m_settings->rowCount();
|
||||
for (int i=0; i<m_settings->rowCount(); i++)
|
||||
m_settings->setRowHeight(i, h);
|
||||
|
||||
m_curve->showEvent(event);
|
||||
}
|
||||
|
||||
@ -374,5 +378,9 @@ void MixerCurve::resizeEvent(QResizeEvent* event)
|
||||
m_settings->resizeColumnsToContents();
|
||||
m_settings->setColumnWidth(0,(m_settings->width() - m_settings->verticalHeader()->width()));
|
||||
|
||||
int h = (m_settings->height() - m_settings->horizontalHeader()->height()) / m_settings->rowCount();
|
||||
for (int i=0; i<m_settings->rowCount(); i++)
|
||||
m_settings->setRowHeight(i, h);
|
||||
|
||||
m_curve->resizeEvent(event);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user