mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:10:04 +00:00 
			
		
		
		
	Use data role to get marker id for location marker dialog.
This commit is contained in:
		
							parent
							
								
									b2e4215ea8
								
							
						
					
					
						commit
						9c16a88b63
					
				
					 2 changed files with 13 additions and 13 deletions
				
			
		|  | @ -100,6 +100,11 @@ QVariant MarkerModel::data(const QModelIndex& index, int role) const | |||
|       return QVariant(); | ||||
|    } | ||||
| 
 | ||||
|    if (role == Qt::ItemDataRole::UserRole) | ||||
|    { | ||||
|       return qulonglong(id); | ||||
|    } | ||||
| 
 | ||||
|    switch(index.column()) | ||||
|    { | ||||
|    case static_cast<int>(Column::Name): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak