kopia lustrzana https://github.com/f4exb/sdrangel
				
				
				
			SoapySDR support: make checkboxes more visible
							rodzic
							
								
									e36bd24330
								
							
						
					
					
						commit
						26af3014a5
					
				| 
						 | 
				
			
			@ -225,6 +225,7 @@ void SoapySDROutputGui::createGlobalGainControl()
 | 
			
		|||
    {
 | 
			
		||||
        m_autoGain = new QCheckBox(this);
 | 
			
		||||
        m_autoGain->setText(QString("AGC"));
 | 
			
		||||
        m_autoGain->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}");
 | 
			
		||||
        layout->addWidget(m_autoGain);
 | 
			
		||||
 | 
			
		||||
        connect(m_autoGain, SIGNAL(toggled(bool)), this, SLOT(autoGainChanged(bool)));
 | 
			
		||||
| 
						 | 
				
			
			@ -280,6 +281,7 @@ void SoapySDROutputGui::createCorrectionsControl()
 | 
			
		|||
        m_autoDCCorrection = new QCheckBox(this);
 | 
			
		||||
        m_autoDCCorrection->setText(QString("Auto DC corr"));
 | 
			
		||||
        m_autoDCCorrection->setToolTip(QString("Automatic hardware DC offset correction"));
 | 
			
		||||
        m_autoDCCorrection->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}");
 | 
			
		||||
        layout->addWidget(m_autoDCCorrection);
 | 
			
		||||
 | 
			
		||||
        connect(m_autoDCCorrection, SIGNAL(toggled(bool)), this, SLOT(autoDCCorrectionChanged(bool)));
 | 
			
		||||
| 
						 | 
				
			
			@ -304,6 +306,7 @@ void SoapySDROutputGui::createCorrectionsControl()
 | 
			
		|||
        m_autoIQCorrection = new QCheckBox(this);
 | 
			
		||||
        m_autoIQCorrection->setText(QString("Auto IQ corr"));
 | 
			
		||||
        m_autoIQCorrection->setToolTip(QString("Automatic hardware IQ imbalance correction"));
 | 
			
		||||
        m_autoIQCorrection->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}");
 | 
			
		||||
        layout->addWidget(m_autoIQCorrection);
 | 
			
		||||
 | 
			
		||||
        connect(m_autoIQCorrection, SIGNAL(toggled(bool)), this, SLOT(autoIQCorrectionChanged(bool)));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -226,6 +226,7 @@ void SoapySDRInputGui::createGlobalGainControl()
 | 
			
		|||
    {
 | 
			
		||||
        m_autoGain = new QCheckBox(this);
 | 
			
		||||
        m_autoGain->setText(QString("AGC"));
 | 
			
		||||
        m_autoGain->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}");
 | 
			
		||||
        layout->addWidget(m_autoGain);
 | 
			
		||||
 | 
			
		||||
        connect(m_autoGain, SIGNAL(toggled(bool)), this, SLOT(autoGainChanged(bool)));
 | 
			
		||||
| 
						 | 
				
			
			@ -282,6 +283,7 @@ void SoapySDRInputGui::createCorrectionsControl()
 | 
			
		|||
        m_autoDCCorrection = new QCheckBox(this);
 | 
			
		||||
        m_autoDCCorrection->setText(QString("Auto DC corr"));
 | 
			
		||||
        m_autoDCCorrection->setToolTip(QString("Automatic hardware DC offset correction"));
 | 
			
		||||
        m_autoDCCorrection->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}");
 | 
			
		||||
        layout->addWidget(m_autoDCCorrection);
 | 
			
		||||
 | 
			
		||||
        connect(m_autoDCCorrection, SIGNAL(toggled(bool)), this, SLOT(autoDCCorrectionChanged(bool)));
 | 
			
		||||
| 
						 | 
				
			
			@ -307,6 +309,7 @@ void SoapySDRInputGui::createCorrectionsControl()
 | 
			
		|||
        m_autoIQCorrection = new QCheckBox(this);
 | 
			
		||||
        m_autoIQCorrection->setText(QString("Auto IQ corr"));
 | 
			
		||||
        m_autoIQCorrection->setToolTip(QString("Automatic hardware IQ imbalance correction"));
 | 
			
		||||
        m_autoIQCorrection->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}");
 | 
			
		||||
        layout->addWidget(m_autoIQCorrection);
 | 
			
		||||
 | 
			
		||||
        connect(m_autoIQCorrection, SIGNAL(toggled(bool)), this, SLOT(autoIQCorrectionChanged(bool)));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,6 +50,10 @@
 | 
			
		|||
    </item>
 | 
			
		||||
    <item>
 | 
			
		||||
     <widget class="QCheckBox" name="argCheck">
 | 
			
		||||
      <property name="styleSheet">
 | 
			
		||||
       <string notr="true">QCheckBox::indicator::unchecked {background: rgb(79,79,79);}
 | 
			
		||||
QCheckBox::indicator::checked {background: rgb(255, 157, 38);}</string>
 | 
			
		||||
      </property>
 | 
			
		||||
      <property name="text">
 | 
			
		||||
       <string/>
 | 
			
		||||
      </property>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@
 | 
			
		|||
     <x>0</x>
 | 
			
		||||
     <y>0</y>
 | 
			
		||||
     <width>301</width>
 | 
			
		||||
     <height>48</height>
 | 
			
		||||
     <height>58</height>
 | 
			
		||||
    </rect>
 | 
			
		||||
   </property>
 | 
			
		||||
   <layout class="QHBoxLayout" name="horizontalLayout">
 | 
			
		||||
| 
						 | 
				
			
			@ -56,6 +56,10 @@
 | 
			
		|||
      <property name="layoutDirection">
 | 
			
		||||
       <enum>Qt::RightToLeft</enum>
 | 
			
		||||
      </property>
 | 
			
		||||
      <property name="styleSheet">
 | 
			
		||||
       <string notr="true">QCheckBox::indicator::unchecked {background: rgb(79,79,79);}
 | 
			
		||||
QCheckBox::indicator::checked {background: rgb(255, 157, 38);}</string>
 | 
			
		||||
      </property>
 | 
			
		||||
      <property name="text">
 | 
			
		||||
       <string>Auto</string>
 | 
			
		||||
      </property>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue