mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-30 12:30:20 -04: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); |     setWindowFlags(windowFlags() | Qt::FramelessWindowHint); | ||||||
|     m_helpURL = "sdrgui/mainspectrum/readme.md"; |     m_helpURL = "sdrgui/mainspectrum/readme.md"; | ||||||
| 
 | 
 | ||||||
|  |     setMinimumSize(m_MinimumWidth, m_MinimumHeight); | ||||||
|  | 
 | ||||||
|     m_indexLabel = new QLabel(); |     m_indexLabel = new QLabel(); | ||||||
|     m_indexLabel->setFixedSize(32, 16); |     m_indexLabel->setFixedSize(32, 16); | ||||||
|     m_indexLabel->setStyleSheet("QLabel { background-color: rgb(128, 128, 128); qproperty-alignment: AlignCenter; }"); |     m_indexLabel->setStyleSheet("QLabel { background-color: rgb(128, 128, 128); qproperty-alignment: AlignCenter; }"); | ||||||
| @ -221,7 +223,7 @@ void MainSpectrumGUI::shrinkWindow() | |||||||
| { | { | ||||||
|     qDebug("MainSpectrumGUI::shrinkWindow"); |     qDebug("MainSpectrumGUI::shrinkWindow"); | ||||||
|     adjustSize(); |     adjustSize(); | ||||||
|     resize(width(), 360); |     resize(width(), m_MinimumHeight); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void MainSpectrumGUI::setTitle(const QString& title) | void MainSpectrumGUI::setTitle(const QString& title) | ||||||
|  | |||||||
| @ -86,6 +86,8 @@ private: | |||||||
|     QSizeGrip *m_sizeGripBottomRight; |     QSizeGrip *m_sizeGripBottomRight; | ||||||
|     bool m_drag; |     bool m_drag; | ||||||
|     QPoint m_DragPosition; |     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 closeEvent(QCloseEvent *event); | ||||||
|     void mousePressEvent(QMouseEvent* event); |     void mousePressEvent(QMouseEvent* event); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user