mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	simplewidgets.cpp: QLineEdit::setClearButtonEnabled() is from Qt5.2
This could cause problems if the user tries to compile with Qt versions between 5.0 and 5.2. Reported-by: Michele Fabi <fabiemme@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									6b7b2a7427
								
							
						
					
					
						commit
						0cf2f90507
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -494,7 +494,7 @@ TagFilter::TagFilter(QWidget *parent) : QWidget(parent) | |||
| { | ||||
| 	ui.setupUi(this); | ||||
| 	ui.label->setText(tr("Tags: ")); | ||||
| #if QT_VERSION >= 0x050000 | ||||
| #if QT_VERSION >= 0x050200 | ||||
| 	ui.filterInternalList->setClearButtonEnabled(true); | ||||
| #endif | ||||
| 	QSortFilterProxyModel *filter = new QSortFilterProxyModel(); | ||||
|  | @ -521,7 +521,7 @@ BuddyFilter::BuddyFilter(QWidget *parent) : QWidget(parent) | |||
| 	ui.setupUi(this); | ||||
| 	ui.label->setText(tr("Person: ")); | ||||
| 	ui.label->setToolTip(tr("Searches for buddies and divemasters")); | ||||
| #if QT_VERSION >= 0x050000 | ||||
| #if QT_VERSION >= 0x050200 | ||||
| 	ui.filterInternalList->setClearButtonEnabled(true); | ||||
| #endif | ||||
| 	QSortFilterProxyModel *filter = new QSortFilterProxyModel(); | ||||
|  | @ -547,7 +547,7 @@ LocationFilter::LocationFilter(QWidget *parent) : QWidget(parent) | |||
| { | ||||
| 	ui.setupUi(this); | ||||
| 	ui.label->setText(tr("Location: ")); | ||||
| #if QT_VERSION >= 0x050000 | ||||
| #if QT_VERSION >= 0x050200 | ||||
| 	ui.filterInternalList->setClearButtonEnabled(true); | ||||
| #endif | ||||
| 	QSortFilterProxyModel *filter = new QSortFilterProxyModel(); | ||||
|  | @ -573,7 +573,7 @@ SuitFilter::SuitFilter(QWidget *parent) : QWidget(parent) | |||
| { | ||||
| 	ui.setupUi(this); | ||||
| 	ui.label->setText(tr("Suits: ")); | ||||
| #if QT_VERSION >= 0x050000 | ||||
| #if QT_VERSION >= 0x050200 | ||||
| 	ui.filterInternalList->setClearButtonEnabled(true); | ||||
| #endif | ||||
| 	QSortFilterProxyModel *filter = new QSortFilterProxyModel(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue