mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Cleanup: remove DiveTripModel::layout() function
This accessor was never used. This is a small step in splitting the DiveTripModel in two (list & tree), which means that the layout is moved up to the view. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									651f63282f
								
							
						
					
					
						commit
						7f2026ded8
					
				
					 2 changed files with 0 additions and 6 deletions
				
			
		|  | @ -633,11 +633,6 @@ void DiveTripModel::setupModelData() | |||
| 	endResetModel(); | ||||
| } | ||||
| 
 | ||||
| DiveTripModel::Layout DiveTripModel::layout() const | ||||
| { | ||||
| 	return currentLayout; | ||||
| } | ||||
| 
 | ||||
| void DiveTripModel::setLayout(DiveTripModel::Layout layout) | ||||
| { | ||||
| 	currentLayout = layout; | ||||
|  |  | |||
|  | @ -49,7 +49,6 @@ public: | |||
| 	QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; | ||||
| 	bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; | ||||
| 	DiveTripModel(QObject *parent = 0); | ||||
| 	Layout layout() const; | ||||
| 	void setLayout(Layout layout); | ||||
| 	QVariant data(const QModelIndex &index, int role) const; | ||||
| 	int columnCount(const QModelIndex&) const; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue