mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:20:06 +00:00 
			
		
		
		
	Move MarkerManager to using an ID system for markers, instead of index
This commit is contained in:
		
							parent
							
								
									236d7c1e35
								
							
						
					
					
						commit
						7a070b3e7f
					
				
					 8 changed files with 233 additions and 74 deletions
				
			
		|  | @ -1,6 +1,7 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <QAbstractTableModel> | ||||
| #include <scwx/qt/types/marker_types.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  | @ -37,12 +38,13 @@ public: | |||
|                 const QVariant&    value, | ||||
|                 int                role = Qt::EditRole) override; | ||||
| 
 | ||||
|    std::optional<types::MarkerId> getId(int index); | ||||
| 
 | ||||
| public slots: | ||||
|    void HandleMarkersInitialized(size_t count); | ||||
|    void HandleMarkerAdded(); | ||||
|    void HandleMarkerChanged(size_t index); | ||||
|    void HandleMarkerRemoved(size_t index); | ||||
|    void HandleMarkerAdded(types::MarkerId id); | ||||
|    void HandleMarkerChanged(types::MarkerId id); | ||||
|    void HandleMarkerRemoved(types::MarkerId id); | ||||
| 
 | ||||
| private: | ||||
|    class Impl; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak