mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	WindowsTitleUpdate is such a trivial object (a QObject with a single signal and no own state), that it's not really understandable why it would need all that "singleton" boiler-plate. Just make it a default constructed/destructed global object. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			275 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			275 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0
 | |
| #ifndef WINDOWTITLEUPDATE_H
 | |
| #define WINDOWTITLEUPDATE_H
 | |
| 
 | |
| #include <QObject>
 | |
| 
 | |
| class WindowTitleUpdate : public QObject
 | |
| {
 | |
| 	Q_OBJECT
 | |
| signals:
 | |
| 	void updateTitle();
 | |
| };
 | |
| 
 | |
| extern WindowTitleUpdate windowTitleUpdate;
 | |
| 
 | |
| #endif // WINDOWTITLEUPDATE_H
 |