mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	cleanup: use pointer-to-member version of connect in SetpointDialog
While touching this dialog, might as well change away from the MOC version of the connect() statements. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									806cfcee21
								
							
						
					
					
						commit
						adb53f9c18
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -189,11 +189,11 @@ SetpointDialog::SetpointDialog(struct divecomputer *dcIn, int seconds) : QDialog | ||||||
| 	dc(dcIn), time(seconds < 0 ? 0 : seconds) | 	dc(dcIn), time(seconds < 0 ? 0 : seconds) | ||||||
| { | { | ||||||
| 	ui.setupUi(this); | 	ui.setupUi(this); | ||||||
| 	connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(buttonClicked(QAbstractButton *))); | 	connect(ui.buttonBox, &QDialogButtonBox::clicked, this, &SetpointDialog::buttonClicked); | ||||||
| 	QShortcut *close = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), this); | 	QShortcut *close = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), this); | ||||||
| 	connect(close, SIGNAL(activated()), this, SLOT(close())); | 	connect(close, &QShortcut::activated, this, &QDialog::close); | ||||||
| 	QShortcut *quit = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this); | 	QShortcut *quit = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this); | ||||||
| 	connect(quit, SIGNAL(activated()), parent(), SLOT(close())); | 	connect(quit, &QShortcut::activated, MainWindow::instance(), &QWidget::close); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| ShiftTimesDialog *ShiftTimesDialog::instance() | ShiftTimesDialog *ShiftTimesDialog::instance() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue