mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Silence more warnings
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									d7d8660bbb
								
							
						
					
					
						commit
						beb0bc7a1d
					
				
					 3 changed files with 16 additions and 2 deletions
				
			
		|  | @ -7,7 +7,9 @@ | |||
| #include "diveplannermodel.h" | ||||
| #include "gettextfromc.h" | ||||
| 
 | ||||
| CylindersModel::CylindersModel(QObject *parent) : changed(false), | ||||
| CylindersModel::CylindersModel(QObject *parent) : | ||||
| 	CleanerTableModel(parent), | ||||
| 	changed(false), | ||||
| 	rows(0) | ||||
| { | ||||
| 	//	enum {REMOVE, TYPE, SIZE, WORKINGPRESS, START, END, O2, HE, DEPTH};
 | ||||
|  |  | |||
|  | @ -78,6 +78,9 @@ SuitsFilterModel::SuitsFilterModel(QObject *parent) : QStringListModel(parent) | |||
| 
 | ||||
| bool SuitsFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const | ||||
| { | ||||
| 	Q_UNUSED(index0); | ||||
| 	Q_UNUSED(sourceModel); | ||||
| 
 | ||||
| 	if (!anyChecked) { | ||||
| 		return true; | ||||
| 	} | ||||
|  | @ -153,6 +156,9 @@ void TagFilterModel::repopulate() | |||
| 
 | ||||
| bool TagFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const | ||||
| { | ||||
| 	Q_UNUSED(index0); | ||||
| 	Q_UNUSED(sourceModel); | ||||
| 
 | ||||
| 	// If there's nothing checked, this should show everything
 | ||||
| 	if (!anyChecked) { | ||||
| 		return true; | ||||
|  | @ -188,6 +194,9 @@ BuddyFilterModel::BuddyFilterModel(QObject *parent) : QStringListModel(parent) | |||
| 
 | ||||
| bool BuddyFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const | ||||
| { | ||||
| 	Q_UNUSED(index0); | ||||
| 	Q_UNUSED(sourceModel); | ||||
| 
 | ||||
| 	// If there's nothing checked, this should show everything
 | ||||
| 	if (!anyChecked) { | ||||
| 		return true; | ||||
|  | @ -246,6 +255,9 @@ LocationFilterModel::LocationFilterModel(QObject *parent) : QStringListModel(par | |||
| 
 | ||||
| bool LocationFilterModel::doFilter(struct dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const | ||||
| { | ||||
| 	Q_UNUSED(index0); | ||||
| 	Q_UNUSED(sourceModel); | ||||
| 
 | ||||
| 	if (!anyChecked) { | ||||
| 		return true; | ||||
| 	} | ||||
|  |  | |||
|  | @ -108,7 +108,7 @@ QVariant YearStatisticsItem::data(int column, int role) const | |||
| 	return ret; | ||||
| } | ||||
| 
 | ||||
| YearlyStatisticsModel::YearlyStatisticsModel(QObject *parent) | ||||
| YearlyStatisticsModel::YearlyStatisticsModel(QObject *parent) : TreeModel(parent) | ||||
| { | ||||
| 	columns = COLUMNS; | ||||
| 	update_yearly_stats(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue