1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

Massive UI revamping (v7): fixed main spectrum window minimum height. Fixes #1210

This commit is contained in:
f4exb 2022-04-20 22:33:28 +02:00
parent 5b0f0e4e51
commit 62ca8f8b29
2 changed files with 5 additions and 1 deletions

View File

@ -42,6 +42,8 @@ MainSpectrumGUI::MainSpectrumGUI(GLSpectrum *spectrum, GLSpectrumGUI *spectrumGU
setWindowFlags(windowFlags() | Qt::FramelessWindowHint);
m_helpURL = "sdrgui/mainspectrum/readme.md";
setMinimumSize(m_MinimumWidth, m_MinimumHeight);
m_indexLabel = new QLabel();
m_indexLabel->setFixedSize(32, 16);
m_indexLabel->setStyleSheet("QLabel { background-color: rgb(128, 128, 128); qproperty-alignment: AlignCenter; }");
@ -221,7 +223,7 @@ void MainSpectrumGUI::shrinkWindow()
{
qDebug("MainSpectrumGUI::shrinkWindow");
adjustSize();
resize(width(), 360);
resize(width(), m_MinimumHeight);
}
void MainSpectrumGUI::setTitle(const QString& title)

View File

@ -86,6 +86,8 @@ private:
QSizeGrip *m_sizeGripBottomRight;
bool m_drag;
QPoint m_DragPosition;
static const int m_MinimumWidth = 360;
static const int m_MinimumHeight = 200 + 20 + 10 + 4*22 + 5;
void closeEvent(QCloseEvent *event);
void mousePressEvent(QMouseEvent* event);