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:
parent
5b0f0e4e51
commit
62ca8f8b29
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user