mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Icons: cache small edit icon
In analogy to the trash-icons, cache a small rendered version of the edit icon. This will be used in the dive-site table. Rename the icon alias from "duplicate-edit-icon" to "edit-icon", as it actually is not a duplicated. The other "edit" icon is an "undo" icon! Move the accessor functions to cleanertablemode.cpp. This is not the ideal place, but since the functions are declared in cleanertablemodel.h it's certainly better than the old place (models.cpp)! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									434990dcd4
								
							
						
					
					
						commit
						d4282e2689
					
				
					 5 changed files with 20 additions and 16 deletions
				
			
		|  | @ -11,20 +11,6 @@ | |||
| 
 | ||||
| #include <QLocale> | ||||
| 
 | ||||
| // initialize the trash icon if necessary
 | ||||
| 
 | ||||
| const QPixmap &trashIcon() | ||||
| { | ||||
| 	static QPixmap trash = QPixmap(":list-remove-icon").scaledToHeight(defaultIconMetrics().sz_small); | ||||
| 	return trash; | ||||
| } | ||||
| 
 | ||||
| const QPixmap &trashForbiddenIcon() | ||||
| { | ||||
| 	static QPixmap trash = QPixmap(":list-remove-disabled-icon").scaledToHeight(defaultIconMetrics().sz_small); | ||||
| 	return trash; | ||||
| } | ||||
| 
 | ||||
| Qt::ItemFlags GasSelectionModel::flags(const QModelIndex&) const | ||||
| { | ||||
| 	return Qt::ItemIsEnabled | Qt::ItemIsSelectable; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue