mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Tie all the pieces together and make Preferences work as intended
Not Apply / Close without Saving / OK work as designed. And things get correctly stored and reset. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									77c4b8ef87
								
							
						
					
					
						commit
						b38e2ab485
					
				
					 5 changed files with 91 additions and 74 deletions
				
			
		|  | @ -20,11 +20,14 @@ signals: | |||
| public slots: | ||||
| 	void buttonClicked(QAbstractButton* button); | ||||
| 	void syncSettings(); | ||||
| 	void resetSettings(); | ||||
| 	void restorePrefs(); | ||||
| 	void rememberPrefs(); | ||||
| 
 | ||||
| private: | ||||
| 	explicit PreferencesDialog(QWidget* parent = 0, Qt::WindowFlags f = 0); | ||||
| 	void reloadPrefs(); | ||||
| 	void setUiFromPrefs(); | ||||
| 	void setPrefsFromUi(); | ||||
| 	void setUIFromSettings(); | ||||
| 	Ui::PreferencesDialog* ui; | ||||
| 	struct preferences oldPrefs; | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue