mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Trigger the log->filter by tag to open the tag filter.
You can't really close it for now. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									abc5d5864c
								
							
						
					
					
						commit
						7a90b9d764
					
				
					 3 changed files with 14 additions and 2 deletions
				
			
		|  | @ -69,6 +69,7 @@ MainWindow::MainWindow() : QMainWindow(), | ||||||
| 	Q_ASSERT_X(m_Instance == NULL, "MainWindow", "MainWindow recreated!"); | 	Q_ASSERT_X(m_Instance == NULL, "MainWindow", "MainWindow recreated!"); | ||||||
| 	m_Instance = this; | 	m_Instance = this; | ||||||
| 	ui.setupUi(this); | 	ui.setupUi(this); | ||||||
|  | 	ui.tagFilter->hide(); | ||||||
| 	profileToolbarActions << ui.profCalcAllTissues << ui.profCalcCeiling << ui.profDcCeiling << ui.profEad << | 	profileToolbarActions << ui.profCalcAllTissues << ui.profCalcCeiling << ui.profDcCeiling << ui.profEad << | ||||||
| 		    ui.profHR << ui.profIncrement3m << ui.profMod << ui.profNdl_tts << ui.profNdl_tts << | 		    ui.profHR << ui.profIncrement3m << ui.profMod << ui.profNdl_tts << ui.profNdl_tts << | ||||||
| 		    ui.profPhe << ui.profPn2 << ui.profPO2 << ui.profRuler << ui.profSAC << ui.profScaled << | 		    ui.profPhe << ui.profPn2 << ui.profPO2 << ui.profRuler << ui.profSAC << ui.profScaled << | ||||||
|  | @ -1327,3 +1328,8 @@ void MainWindow::on_paste_triggered() | ||||||
| 	selective_copy_dive(©PasteDive, &displayed_dive, what, false); | 	selective_copy_dive(©PasteDive, &displayed_dive, what, false); | ||||||
| 	ui.InfoWidget->showAndTriggerEditSelective(what); | 	ui.InfoWidget->showAndTriggerEditSelective(what); | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | void MainWindow::on_actionFilterTags_triggered() | ||||||
|  | { | ||||||
|  | 	ui.tagFilter->show(); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | @ -146,7 +146,7 @@ slots: | ||||||
| 	void on_actionExport_triggered(); | 	void on_actionExport_triggered(); | ||||||
| 	void on_copy_triggered(); | 	void on_copy_triggered(); | ||||||
| 	void on_paste_triggered(); | 	void on_paste_triggered(); | ||||||
| 
 | 	void on_actionFilterTags_triggered(); | ||||||
| 	void on_actionConfigure_Dive_Computer_triggered(); | 	void on_actionConfigure_Dive_Computer_triggered(); | ||||||
| 
 | 
 | ||||||
| protected: | protected: | ||||||
|  |  | ||||||
|  | @ -296,6 +296,7 @@ p, li { white-space: pre-wrap; } | ||||||
|     <addaction name="actionAutoGroup"/> |     <addaction name="actionAutoGroup"/> | ||||||
|     <addaction name="separator"/> |     <addaction name="separator"/> | ||||||
|     <addaction name="actionEditDeviceNames"/> |     <addaction name="actionEditDeviceNames"/> | ||||||
|  |     <addaction name="actionFilterTags"/> | ||||||
|    </widget> |    </widget> | ||||||
|    <widget class="QMenu" name="menuView"> |    <widget class="QMenu" name="menuView"> | ||||||
|     <property name="title"> |     <property name="title"> | ||||||
|  | @ -838,6 +839,11 @@ p, li { white-space: pre-wrap; } | ||||||
|     <string>Toggle Tank Bar</string> |     <string>Toggle Tank Bar</string> | ||||||
|    </property> |    </property> | ||||||
|   </action> |   </action> | ||||||
|  |   <action name="actionFilterTags"> | ||||||
|  |    <property name="text"> | ||||||
|  |     <string>Filter by Tags</string> | ||||||
|  |    </property> | ||||||
|  |   </action> | ||||||
|  </widget> |  </widget> | ||||||
|  <customwidgets> |  <customwidgets> | ||||||
|   <customwidget> |   <customwidget> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue