Skip to content

Commit fc2581c

Browse files
committed
Daily connectification
1 parent b0c88f1 commit fc2581c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+464
-468
lines changed

src/plugins/coordinate_capture/coordinatecapture.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ void CoordinateCapture::initGui()
113113
// Set the what's this text
114114
mQActionPointer->setWhatsThis( tr( "Click on the map to view coordinates and capture to clipboard." ) );
115115
// Connect the action to the run
116-
connect( mQActionPointer, SIGNAL( triggered() ), this, SLOT( showOrHide() ) );
116+
connect( mQActionPointer, &QAction::triggered, this, &CoordinateCapture::showOrHide );
117117
mQGisIface->addPluginToVectorMenu( tr( "&Coordinate Capture" ), mQActionPointer );
118118
mQGisIface->addVectorToolBarIcon( mQActionPointer );
119119

120120
// create our map tool
121121
mpMapTool = new CoordinateCaptureMapTool( mQGisIface->mapCanvas() );
122-
connect( mpMapTool, SIGNAL( mouseMoved( QgsPoint ) ), this, SLOT( mouseMoved( QgsPoint ) ) );
123-
connect( mpMapTool, SIGNAL( mouseClicked( QgsPoint ) ), this, SLOT( mouseClicked( QgsPoint ) ) );
122+
connect( mpMapTool, &CoordinateCaptureMapTool::mouseMoved, this, &CoordinateCapture::mouseMoved );
123+
connect( mpMapTool, &CoordinateCaptureMapTool::mouseClicked, this, &CoordinateCapture::mouseClicked );
124124

125125
// create a little widget with x and y display to put into our dock widget
126126
QWidget *mypWidget = new QWidget();
@@ -130,7 +130,7 @@ void CoordinateCapture::initGui()
130130

131131
mypUserCrsToolButton = new QToolButton( mypWidget );
132132
mypUserCrsToolButton->setToolTip( tr( "Click to select the CRS to use for coordinate display" ) );
133-
connect( mypUserCrsToolButton, SIGNAL( clicked() ), this, SLOT( setCRS() ) );
133+
connect( mypUserCrsToolButton, &QAbstractButton::clicked, this, &CoordinateCapture::setCRS );
134134

135135
mypCRSLabel = new QLabel( mypWidget );
136136
mypCRSLabel->setGeometry( mypUserCrsToolButton->geometry() );
@@ -145,7 +145,7 @@ void CoordinateCapture::initGui()
145145

146146
QPushButton *mypCopyButton = new QPushButton( mypWidget );
147147
mypCopyButton->setText( tr( "Copy to clipboard" ) );
148-
connect( mypCopyButton, SIGNAL( clicked() ), this, SLOT( copy() ) );
148+
connect( mypCopyButton, &QAbstractButton::clicked, this, &CoordinateCapture::copy );
149149

150150
mpTrackMouseButton = new QToolButton( mypWidget );
151151
mpTrackMouseButton->setCheckable( true );
@@ -158,7 +158,7 @@ void CoordinateCapture::initGui()
158158
mpCaptureButton->setToolTip( tr( "Click to enable coordinate capture" ) );
159159
mpCaptureButton->setIcon( QIcon( ":/coordinate_capture/coordinate_capture.png" ) );
160160
mpCaptureButton->setWhatsThis( tr( "Click on the map to view coordinates and capture to clipboard." ) );
161-
connect( mpCaptureButton, SIGNAL( clicked() ), this, SLOT( run() ) );
161+
connect( mpCaptureButton, &QAbstractButton::clicked, this, &CoordinateCapture::run );
162162

163163
// Set the icons
164164
setCurrentTheme( QLatin1String( "" ) );
@@ -173,7 +173,7 @@ void CoordinateCapture::initGui()
173173

174174
// now add our custom widget to the dock - ownership of the widget is passed to the dock
175175
mpDockWidget->setWidget( mypWidget );
176-
connect( mpDockWidget, SIGNAL( visibilityChanged( bool ) ), mQActionPointer, SLOT( setChecked( bool ) ) );
176+
connect( mpDockWidget.data(), &QDockWidget::visibilityChanged, mQActionPointer, &QAction::setChecked );
177177
}
178178

179179
//method defined in interface

src/plugins/evis/databaseconnection/evisdatabaseconnectiongui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ eVisDatabaseConnectionGui::eVisDatabaseConnectionGui( QList<QTemporaryFile *> *t
6262

6363
//Create a new instance of the file selector
6464
mDatabaseLayerFieldSelector = new eVisDatabaseLayerFieldSelectionGui( this, fl );
65-
connect( mDatabaseLayerFieldSelector, SIGNAL( eVisDatabaseLayerFieldsSelected( QString, QString, QString ) ), this, SLOT( drawNewVectorLayer( QString, QString, QString ) ) );
65+
connect( mDatabaseLayerFieldSelector, &eVisDatabaseLayerFieldSelectionGui::eVisDatabaseLayerFieldsSelected, this, &eVisDatabaseConnectionGui::drawNewVectorLayer );
6666

6767
//Populate gui components
6868
#ifdef Q_OS_WIN

src/plugins/evis/eventbrowser/evisgenericeventbrowsergui.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ eVisGenericEventBrowserGui::~eVisGenericEventBrowserGui()
119119
//Clean up, disconnect the highlighting routine and refresh the canvas to clear highlighting symbol
120120
if ( mCanvas )
121121
{
122-
disconnect( mCanvas, SIGNAL( renderComplete( QPainter * ) ), this, SLOT( renderSymbol( QPainter * ) ) );
122+
disconnect( mCanvas, &QgsMapCanvas::renderComplete, this, &eVisGenericEventBrowserGui::renderSymbol );
123123
mCanvas->refresh();
124124
}
125125

@@ -139,7 +139,7 @@ bool eVisGenericEventBrowserGui::initBrowser()
139139
//setup gui
140140
setWindowTitle( tr( "Generic Event Browser" ) );
141141

142-
connect( treeEventData, SIGNAL( itemDoubleClicked( QTreeWidgetItem *, int ) ), this, SLOT( launchExternalApplication( QTreeWidgetItem *, int ) ) );
142+
connect( treeEventData, &QTreeWidget::itemDoubleClicked, this, &eVisGenericEventBrowserGui::launchExternalApplication );
143143

144144
mHighlightSymbol.load( QStringLiteral( ":/evis/eVisHighlightSymbol.png" ) );
145145
mPointerSymbol.load( QStringLiteral( ":/evis/eVisPointerSymbol.png" ) );
@@ -242,7 +242,7 @@ bool eVisGenericEventBrowserGui::initBrowser()
242242
}
243243

244244
//Connect rendering routine for highlighting symbols and load symbols
245-
connect( mCanvas, SIGNAL( renderComplete( QPainter * ) ), this, SLOT( renderSymbol( QPainter * ) ) );
245+
connect( mCanvas, &QgsMapCanvas::renderComplete, this, &eVisGenericEventBrowserGui::renderSymbol );
246246

247247
mDataProvider = mVectorLayer->dataProvider();
248248

src/plugins/evis/eventbrowser/evisimagedisplaywidget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ eVisImageDisplayWidget::eVisImageDisplayWidget( QWidget *parent, Qt::WindowFlags
6363
pbtnZoomIn->setIcon( QIcon( QPixmap( myThemePath + "/mActionZoomIn.svg" ) ) );
6464
pbtnZoomOut->setIcon( QIcon( QPixmap( myThemePath + "/mActionZoomOut.svg" ) ) );
6565
pbtnZoomFull->setIcon( QIcon( QPixmap( myThemePath + "/mActionZoomFullExtent.svg" ) ) );
66-
connect( pbtnZoomIn, SIGNAL( clicked() ), this, SLOT( on_pbtnZoomIn_clicked() ) );
67-
connect( pbtnZoomOut, SIGNAL( clicked() ), this, SLOT( on_pbtnZoomOut_clicked() ) );
68-
connect( pbtnZoomFull, SIGNAL( clicked() ), this, SLOT( on_pbtnZoomFull_clicked() ) );
66+
connect( pbtnZoomIn, &QAbstractButton::clicked, this, &eVisImageDisplayWidget::on_pbtnZoomIn_clicked );
67+
connect( pbtnZoomOut, &QAbstractButton::clicked, this, &eVisImageDisplayWidget::on_pbtnZoomOut_clicked );
68+
connect( pbtnZoomFull, &QAbstractButton::clicked, this, &eVisImageDisplayWidget::on_pbtnZoomFull_clicked );
6969

7070
//Setup zoom button layout
7171
QWidget *myButtonBar = new QWidget();

src/plugins/evis/evis.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ void eVis::initGui()
116116
mEventBrowserActionPointer->setWhatsThis( tr( "Open an Event Browser to explore the current layer's features" ) );
117117

118118
// Connect the action to the runmQGisIface->mapCanvas()
119-
connect( mDatabaseConnectionActionPointer, SIGNAL( triggered() ), this, SLOT( launchDatabaseConnection() ) );
120-
connect( mEventIdToolActionPointer, SIGNAL( triggered() ), this, SLOT( launchEventIdTool() ) );
121-
connect( mEventBrowserActionPointer, SIGNAL( triggered() ), this, SLOT( launchEventBrowser() ) );
119+
connect( mDatabaseConnectionActionPointer, &QAction::triggered, this, &eVis::launchDatabaseConnection );
120+
connect( mEventIdToolActionPointer, &QAction::triggered, this, &eVis::launchEventIdTool );
121+
connect( mEventBrowserActionPointer, &QAction::triggered, this, &eVis::launchEventBrowser );
122122

123123

124124
// Add the icon to the toolbar
@@ -144,7 +144,7 @@ void eVis::launchDatabaseConnection()
144144
eVisDatabaseConnectionGui *myPluginGui = new eVisDatabaseConnectionGui( &mTemporaryFileList, mQGisIface->mainWindow(), QgisGui::ModalDialogFlags );
145145
myPluginGui->setAttribute( Qt::WA_DeleteOnClose );
146146

147-
connect( myPluginGui, SIGNAL( drawVectorLayer( QString, QString, QString ) ), this, SLOT( drawVectorLayer( QString, QString, QString ) ) );
147+
connect( myPluginGui, &eVisDatabaseConnectionGui::drawVectorLayer, this, &eVis::drawVectorLayer );
148148
myPluginGui->show();
149149
}
150150

src/plugins/geometry_checker/qgsgeometrychecker.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ QFuture<void> QgsGeometryChecker::execute( int *totalSteps )
6161
QFutureWatcher<void> *watcher = new QFutureWatcher<void>();
6262
watcher->setFuture( future );
6363
QTimer *timer = new QTimer();
64-
connect( timer, SIGNAL( timeout() ), this, SLOT( emitProgressValue() ) );
65-
connect( watcher, SIGNAL( finished() ), timer, SLOT( deleteLater() ) );
66-
connect( watcher, SIGNAL( finished() ), watcher, SLOT( deleteLater() ) );
64+
connect( timer, &QTimer::timeout, this, &QgsGeometryChecker::emitProgressValue );
65+
connect( watcher, &QFutureWatcherBase::finished, timer, &QObject::deleteLater );
66+
connect( watcher, &QFutureWatcherBase::finished, watcher, &QObject::deleteLater );
6767
timer->start( 500 );
6868

6969
return future;

src/plugins/geometry_checker/qgsgeometrycheckerplugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ void QgsGeometryCheckerPlugin::initGui()
3131
mDialog = new QgsGeometryCheckerDialog( mIface, mIface->mainWindow() );
3232
mDialog->setWindowModality( Qt::NonModal );
3333
mMenuAction = new QAction( QIcon( ":/geometrychecker/icons/geometrychecker.png" ), QApplication::translate( "QgsGeometryCheckerPlugin", "Check Geometries" ), this );
34-
connect( mMenuAction, SIGNAL( triggered() ), mDialog, SLOT( show() ) );
35-
connect( mMenuAction, SIGNAL( triggered() ), mDialog, SLOT( raise() ) );
34+
connect( mMenuAction, &QAction::triggered, mDialog, &QWidget::show );
35+
connect( mMenuAction, &QAction::triggered, mDialog, &QWidget::raise );
3636
mIface->addPluginToVectorMenu( QApplication::translate( "QgsGeometryCheckerPlugin", "G&eometry Tools" ), mMenuAction );
3737
}
3838

src/plugins/geometry_checker/ui/qgsgeometrycheckerdialog.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
#include "qgsgeometrycheckerdialog.h"
1818
#include "qgsgeometrycheckersetuptab.h"
1919
#include "qgsgeometrycheckerresulttab.h"
20-
20+
#include "../qgsgeometrychecker.h"
21+
#include "../utils/qgsfeaturepool.h"
2122
#include "qgssettings.h"
2223

2324
#include <QCloseEvent>
@@ -44,9 +45,9 @@ QgsGeometryCheckerDialog::QgsGeometryCheckerDialog( QgisInterface *iface, QWidge
4445
mTabWidget->addTab( new QWidget(), tr( "Result" ) );
4546
mTabWidget->setTabEnabled( 1, false );
4647

47-
connect( mButtonBox, SIGNAL( rejected() ), this, SLOT( reject() ) );
48-
connect( mTabWidget->widget( 0 ), SIGNAL( checkerStarted( QgsGeometryChecker *, QgsFeaturePool * ) ), this, SLOT( onCheckerStarted( QgsGeometryChecker *, QgsFeaturePool * ) ) );
49-
connect( mTabWidget->widget( 0 ), SIGNAL( checkerFinished( bool ) ), this, SLOT( onCheckerFinished( bool ) ) );
48+
connect( mButtonBox, &QDialogButtonBox::rejected, this, &QDialog::reject );
49+
connect( dynamic_cast< QgsGeometryCheckerSetupTab * >( mTabWidget->widget( 0 ) ), &QgsGeometryCheckerSetupTab::checkerStarted, this, &QgsGeometryCheckerDialog::onCheckerStarted );
50+
connect( dynamic_cast< QgsGeometryCheckerSetupTab * >( mTabWidget->widget( 0 ) ), &QgsGeometryCheckerSetupTab::checkerFinished, this, &QgsGeometryCheckerDialog::onCheckerFinished );
5051
}
5152

5253
QgsGeometryCheckerDialog::~QgsGeometryCheckerDialog()

src/plugins/geometry_checker/ui/qgsgeometrycheckerfixsummarydialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void QgsGeometryCheckerFixSummaryDialog::setupTable( QTableWidget *table )
109109
table->horizontalHeader()->setSortIndicator( 0, Qt::AscendingOrder );
110110
table->setSortingEnabled( true );
111111

112-
connect( table->selectionModel(), SIGNAL( selectionChanged( QItemSelection, QItemSelection ) ), this, SLOT( onTableSelectionChanged( QItemSelection, QItemSelection ) ) );
112+
connect( table->selectionModel(), &QItemSelectionModel::selectionChanged, this, &QgsGeometryCheckerFixSummaryDialog::onTableSelectionChanged );
113113
}
114114

115115
void QgsGeometryCheckerFixSummaryDialog::onTableSelectionChanged( const QItemSelection &newSel, const QItemSelection & /*oldSel*/ )

src/plugins/geometry_checker/ui/qgsgeometrycheckerresulttab.cpp

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,18 @@ QgsGeometryCheckerResultTab::QgsGeometryCheckerResultTab( QgisInterface *iface,
5959
ui.comboBoxMergeAttribute->addItem( mFeaturePool->getLayer()->fields().at( i ).name() );
6060
}
6161

62-
connect( checker, SIGNAL( errorAdded( QgsGeometryCheckError * ) ), this, SLOT( addError( QgsGeometryCheckError * ) ) );
63-
connect( checker, SIGNAL( errorUpdated( QgsGeometryCheckError *, bool ) ), this, SLOT( updateError( QgsGeometryCheckError *, bool ) ) );
64-
connect( ui.comboBoxMergeAttribute, SIGNAL( currentIndexChanged( int ) ), checker, SLOT( setMergeAttributeIndex( int ) ) );
65-
connect( ui.tableWidgetErrors->selectionModel(), SIGNAL( selectionChanged( QItemSelection, QItemSelection ) ), this, SLOT( onSelectionChanged( QItemSelection, QItemSelection ) ) );
66-
connect( ui.buttonGroupSelectAction, SIGNAL( buttonClicked( int ) ), this, SLOT( highlightErrors() ) );
67-
connect( ui.pushButtonOpenAttributeTable, SIGNAL( clicked() ), this, SLOT( openAttributeTable() ) );
68-
connect( ui.pushButtonFixWithDefault, SIGNAL( clicked() ), this, SLOT( fixErrorsWithDefault() ) );
69-
connect( ui.pushButtonFixWithPrompt, SIGNAL( clicked() ), this, SLOT( fixErrorsWithPrompt() ) );
70-
connect( ui.pushButtonErrorResolutionSettings, SIGNAL( clicked() ), this, SLOT( setDefaultResolutionMethods() ) );
71-
connect( ui.checkBoxHighlight, SIGNAL( clicked() ), this, SLOT( highlightErrors() ) );
72-
connect( QgsProject::instance(), SIGNAL( layersWillBeRemoved( QStringList ) ), this, SLOT( checkRemovedLayer( QStringList ) ) );
73-
connect( ui.pushButtonExport, SIGNAL( clicked() ), this, SLOT( exportErrors() ) );
62+
connect( checker, &QgsGeometryChecker::errorAdded, this, &QgsGeometryCheckerResultTab::addError );
63+
connect( checker, &QgsGeometryChecker::errorUpdated, this, &QgsGeometryCheckerResultTab::updateError );
64+
connect( ui.comboBoxMergeAttribute, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), checker, &QgsGeometryChecker::setMergeAttributeIndex );
65+
connect( ui.tableWidgetErrors->selectionModel(), &QItemSelectionModel::selectionChanged, this, &QgsGeometryCheckerResultTab::onSelectionChanged );
66+
connect( ui.buttonGroupSelectAction, static_cast<void ( QButtonGroup::* )( int )>( &QButtonGroup::buttonClicked ), this, &QgsGeometryCheckerResultTab::highlightErrors );
67+
connect( ui.pushButtonOpenAttributeTable, &QAbstractButton::clicked, this, &QgsGeometryCheckerResultTab::openAttributeTable );
68+
connect( ui.pushButtonFixWithDefault, &QAbstractButton::clicked, this, &QgsGeometryCheckerResultTab::fixErrorsWithDefault );
69+
connect( ui.pushButtonFixWithPrompt, &QAbstractButton::clicked, this, &QgsGeometryCheckerResultTab::fixErrorsWithPrompt );
70+
connect( ui.pushButtonErrorResolutionSettings, &QAbstractButton::clicked, this, &QgsGeometryCheckerResultTab::setDefaultResolutionMethods );
71+
connect( ui.checkBoxHighlight, &QAbstractButton::clicked, this, &QgsGeometryCheckerResultTab::highlightErrors );
72+
connect( QgsProject::instance(), static_cast<void ( QgsProject::* )( const QStringList & )>( &QgsProject::layersWillBeRemoved ), this, &QgsGeometryCheckerResultTab::checkRemovedLayer );
73+
connect( ui.pushButtonExport, &QAbstractButton::clicked, this, &QgsGeometryCheckerResultTab::exportErrors );
7474

7575
if ( ( mFeaturePool->getLayer()->dataProvider()->capabilities() & QgsVectorDataProvider::ChangeGeometries ) == 0 )
7676
{
@@ -105,8 +105,8 @@ void QgsGeometryCheckerResultTab::finalize()
105105
dialog.layout()->addWidget( new QPlainTextEdit( mChecker->getMessages().join( QStringLiteral( "\n" ) ) ) );
106106
QDialogButtonBox *bbox = new QDialogButtonBox( QDialogButtonBox::Close, Qt::Horizontal );
107107
dialog.layout()->addWidget( bbox );
108-
connect( bbox, SIGNAL( accepted() ), &dialog, SLOT( accept() ) );
109-
connect( bbox, SIGNAL( rejected() ), &dialog, SLOT( reject() ) );
108+
connect( bbox, &QDialogButtonBox::accepted, &dialog, &QDialog::accept );
109+
connect( bbox, &QDialogButtonBox::rejected, &dialog, &QDialog::reject );
110110
dialog.setWindowTitle( tr( "Check errors occurred" ) );
111111
dialog.exec();
112112
}
@@ -442,11 +442,11 @@ void QgsGeometryCheckerResultTab::openAttributeTable()
442442
}
443443
if ( mAttribTableDialog )
444444
{
445-
disconnect( mAttribTableDialog, SIGNAL( destroyed() ), this, SLOT( clearAttribTableDialog() ) );
445+
disconnect( mAttribTableDialog, &QObject::destroyed, this, &QgsGeometryCheckerResultTab::clearAttribTableDialog );
446446
mAttribTableDialog->close();
447447
}
448448
mAttribTableDialog = mIface->showAttributeTable( mFeaturePool->getLayer(), expr.join( QStringLiteral( " or " ) ) );
449-
connect( mAttribTableDialog, SIGNAL( destroyed() ), this, SLOT( clearAttribTableDialog() ) );
449+
connect( mAttribTableDialog, &QObject::destroyed, this, &QgsGeometryCheckerResultTab::clearAttribTableDialog );
450450
}
451451

452452
void QgsGeometryCheckerResultTab::fixErrors( bool prompt )
@@ -489,8 +489,8 @@ void QgsGeometryCheckerResultTab::fixErrors( bool prompt )
489489
{
490490
QgsGeometryCheckerFixDialog fixdialog( mChecker, errors, mIface, mIface->mainWindow() );
491491
QEventLoop loop;
492-
connect( &fixdialog, SIGNAL( currentErrorChanged( QgsGeometryCheckError * ) ), this, SLOT( highlightError( QgsGeometryCheckError * ) ) );
493-
connect( &fixdialog, SIGNAL( finished( int ) ), &loop, SLOT( quit() ) );
492+
connect( &fixdialog, &QgsGeometryCheckerFixDialog::currentErrorChanged, this, &QgsGeometryCheckerResultTab::highlightError );
493+
connect( &fixdialog, &QDialog::finished, &loop, &QEventLoop::quit );
494494
fixdialog.show();
495495
parentWidget()->parentWidget()->parentWidget()->setEnabled( false );
496496
loop.exec();
@@ -519,8 +519,8 @@ void QgsGeometryCheckerResultTab::fixErrors( bool prompt )
519519
{
520520
QgsGeometryCheckerFixSummaryDialog summarydialog( mIface, mFeaturePool->getLayer(), mStatistics, mChecker->getMessages(), mIface->mainWindow() );
521521
QEventLoop loop;
522-
connect( &summarydialog, SIGNAL( errorSelected( QgsGeometryCheckError * ) ), this, SLOT( highlightError( QgsGeometryCheckError * ) ) );
523-
connect( &summarydialog, SIGNAL( finished( int ) ), &loop, SLOT( quit() ) );
522+
connect( &summarydialog, &QgsGeometryCheckerFixSummaryDialog::errorSelected, this, &QgsGeometryCheckerResultTab::highlightError );
523+
connect( &summarydialog, &QDialog::finished, &loop, &QEventLoop::quit );
524524
summarydialog.show();
525525
parentWidget()->parentWidget()->parentWidget()->setEnabled( false );
526526
loop.exec();
@@ -578,14 +578,14 @@ void QgsGeometryCheckerResultTab::setDefaultResolutionMethods()
578578
groupBoxLayout->addWidget( radio );
579579
radioGroup->addButton( radio, id++ );
580580
}
581-
connect( radioGroup, SIGNAL( buttonClicked( int ) ), this, SLOT( storeDefaultResolutionMethod( int ) ) );
581+
connect( radioGroup, static_cast<void ( QButtonGroup::* )( int )>( &QButtonGroup::buttonClicked ), this, &QgsGeometryCheckerResultTab::storeDefaultResolutionMethod );
582582

583583
scrollAreaLayout->addWidget( groupBox );
584584
}
585585
scrollArea->setWidget( scrollAreaContents );
586586

587587
QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Ok, Qt::Horizontal, &dialog );
588-
connect( buttonBox, SIGNAL( accepted() ), &dialog, SLOT( accept() ) );
588+
connect( buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::accept );
589589
layout->addWidget( buttonBox );
590590
dialog.exec();
591591
}

0 commit comments

Comments
 (0)