mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-25 10:00:23 -04:00 
			
		
		
		
	Test the ActiveStations pointer before using it. Add some Tool Tips.
This commit is contained in:
		
							parent
							
								
									4957face2f
								
							
						
					
					
						commit
						1cee98162a
					
				| @ -6,7 +6,7 @@ | ||||
|    <rect> | ||||
|     <x>0</x> | ||||
|     <y>0</y> | ||||
|     <width>405</width> | ||||
|     <width>466</width> | ||||
|     <height>339</height> | ||||
|    </rect> | ||||
|   </property> | ||||
| @ -18,44 +18,6 @@ | ||||
|     <layout class="QGridLayout" name="gridLayout"> | ||||
|      <item row="2" column="0"> | ||||
|       <layout class="QGridLayout" name="gridLayout_2"> | ||||
|        <item row="0" column="0"> | ||||
|         <widget class="QSpinBox" name="sbMaxRecent"> | ||||
|          <property name="sizePolicy"> | ||||
|           <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> | ||||
|            <horstretch>0</horstretch> | ||||
|            <verstretch>0</verstretch> | ||||
|           </sizepolicy> | ||||
|          </property> | ||||
|          <property name="minimumSize"> | ||||
|           <size> | ||||
|            <width>100</width> | ||||
|            <height>0</height> | ||||
|           </size> | ||||
|          </property> | ||||
|          <property name="prefix"> | ||||
|           <string>Max N  </string> | ||||
|          </property> | ||||
|          <property name="maximum"> | ||||
|           <number>50</number> | ||||
|          </property> | ||||
|          <property name="value"> | ||||
|           <number>10</number> | ||||
|          </property> | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item row="0" column="3"> | ||||
|         <spacer name="horizontalSpacer"> | ||||
|          <property name="orientation"> | ||||
|           <enum>Qt::Horizontal</enum> | ||||
|          </property> | ||||
|          <property name="sizeHint" stdset="0"> | ||||
|           <size> | ||||
|            <width>40</width> | ||||
|            <height>20</height> | ||||
|           </size> | ||||
|          </property> | ||||
|         </spacer> | ||||
|        </item> | ||||
|        <item row="0" column="1"> | ||||
|         <widget class="QSpinBox" name="sbMaxAge"> | ||||
|          <property name="sizePolicy"> | ||||
| @ -66,10 +28,13 @@ | ||||
|          </property> | ||||
|          <property name="minimumSize"> | ||||
|           <size> | ||||
|            <width>100</width> | ||||
|            <width>80</width> | ||||
|            <height>0</height> | ||||
|           </size> | ||||
|          </property> | ||||
|          <property name="toolTip"> | ||||
|           <string><html><head/><body><p>Set maximum elapsed number of T/R sequences for decodes included in the list.</p></body></html></string> | ||||
|          </property> | ||||
|          <property name="prefix"> | ||||
|           <string>Max Age  </string> | ||||
|          </property> | ||||
| @ -84,13 +49,64 @@ | ||||
|          </property> | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item row="0" column="0"> | ||||
|         <widget class="QSpinBox" name="sbMaxRecent"> | ||||
|          <property name="sizePolicy"> | ||||
|           <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> | ||||
|            <horstretch>0</horstretch> | ||||
|            <verstretch>0</verstretch> | ||||
|           </sizepolicy> | ||||
|          </property> | ||||
|          <property name="minimumSize"> | ||||
|           <size> | ||||
|            <width>80</width> | ||||
|            <height>0</height> | ||||
|           </size> | ||||
|          </property> | ||||
|          <property name="toolTip"> | ||||
|           <string><html><head/><body><p>Set maximum number of displayed lines.</p></body></html></string> | ||||
|          </property> | ||||
|          <property name="prefix"> | ||||
|           <string>Max N  </string> | ||||
|          </property> | ||||
|          <property name="maximum"> | ||||
|           <number>50</number> | ||||
|          </property> | ||||
|          <property name="value"> | ||||
|           <number>10</number> | ||||
|          </property> | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item row="0" column="2"> | ||||
|         <widget class="QCheckBox" name="cbReadyOnly"> | ||||
|          <property name="toolTip"> | ||||
|           <string><html><head/><body><p>Check to list only stations immediately ready to be called.</p></body></html></string> | ||||
|          </property> | ||||
|          <property name="text"> | ||||
|           <string>Ready only</string> | ||||
|          </property> | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item row="0" column="3"> | ||||
|         <widget class="QLabel" name="label"> | ||||
|          <property name="text"> | ||||
|           <string>Rate:</string> | ||||
|          </property> | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item row="0" column="4"> | ||||
|         <widget class="QLineEdit" name="lineEdit"> | ||||
|          <property name="maximumSize"> | ||||
|           <size> | ||||
|            <width>50</width> | ||||
|            <height>16777215</height> | ||||
|           </size> | ||||
|          </property> | ||||
|          <property name="toolTip"> | ||||
|           <string><html><head/><body><p>Rate of score increase, points per hour.</p></body></html></string> | ||||
|          </property> | ||||
|         </widget> | ||||
|        </item> | ||||
|       </layout> | ||||
|      </item> | ||||
|      <item row="1" column="0"> | ||||
|  | ||||
| @ -3520,8 +3520,11 @@ void MainWindow::activeWorked(QString call, QString band) | ||||
| 
 | ||||
| void MainWindow::readFromStdout()                             //readFromStdout
 | ||||
| { | ||||
|   bool bDisplayPoints = (m_mode=="FT4" or m_mode=="FT8") and | ||||
|   bool bDisplayPoints = false; | ||||
|   if(m_ActiveStationsWidget!=NULL) { | ||||
|     bDisplayPoints=(m_mode=="FT4" or m_mode=="FT8") and | ||||
|       (m_config.special_op_id()==SpecOp::ARRL_DIGI or m_ActiveStationsWidget->isVisible()); | ||||
|   } | ||||
|   while(proc_jt9.canReadLine()) { | ||||
|     auto line_read = proc_jt9.readLine (); | ||||
|     if (auto p = std::strpbrk (line_read.constData (), "\n\r")) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user