mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Preferecnes: add the initial skeleton
This Preferences dialog should be visually similar to the old one - the main difference is how it acts on the preferences. It's also not based on .ui files since it's a very simple widget I prefered to mount it by hand - no more than 6 lines of c++ code. Right now we have only one preference page on this, and nothing is hoocked up. I've also changed mainwindow a bit to only show this dialog for testing purposes. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									255325e219
								
							
						
					
					
						commit
						b7a476169d
					
				
					 5 changed files with 118 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -40,6 +40,7 @@
 | 
			
		|||
#include "divesitehelpers.h"
 | 
			
		||||
#include "windowtitleupdate.h"
 | 
			
		||||
#include "locationinformation.h"
 | 
			
		||||
#include "preferences/preferencesdialog.h"
 | 
			
		||||
 | 
			
		||||
#ifndef NO_USERMANUAL
 | 
			
		||||
#include "usermanual.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -254,6 +255,8 @@ MainWindow::MainWindow() : QMainWindow(),
 | 
			
		|||
 | 
			
		||||
	ui.menubar->show();
 | 
			
		||||
	set_git_update_cb(&updateProgress);
 | 
			
		||||
	PreferencesDialogV2 *d = new PreferencesDialogV2();
 | 
			
		||||
	d->show();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
MainWindow::~MainWindow()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue