Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Remove use of c style function(void)
- Loading branch information
|
@@ -824,7 +824,7 @@ void QgsComposer::connectOtherSlots() |
|
|
connect( this, SIGNAL( zoomLevelChanged() ), this, SLOT( updateStatusZoom() ) ); |
|
|
} |
|
|
|
|
|
void QgsComposer::open( void ) |
|
|
void QgsComposer::open() |
|
|
{ |
|
|
if ( mFirstTime ) |
|
|
{ |
|
@@ -1222,17 +1222,17 @@ void QgsComposer::atlasPageComboEditingFinished() |
|
|
} |
|
|
} |
|
|
|
|
|
QgsMapCanvas *QgsComposer::mapCanvas( void ) |
|
|
QgsMapCanvas* QgsComposer::mapCanvas() |
|
|
{ |
|
|
return mQgis->mapCanvas(); |
|
|
} |
|
|
|
|
|
QgsComposerView *QgsComposer::view( void ) |
|
|
QgsComposerView* QgsComposer::view() |
|
|
{ |
|
|
return mView; |
|
|
} |
|
|
|
|
|
void QgsComposer::zoomFull( void ) |
|
|
void QgsComposer::zoomFull() |
|
|
{ |
|
|
if ( mView ) |
|
|
{ |
|
|
|
@@ -85,13 +85,13 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase |
|
|
void zoomFull(); |
|
|
|
|
|
//! Return pointer to map canvas |
|
|
QgsMapCanvas *mapCanvas( void ); |
|
|
QgsMapCanvas* mapCanvas(); |
|
|
|
|
|
//! Return pointer to composer view |
|
|
QgsComposerView *view( void ); |
|
|
QgsComposerView* view(); |
|
|
|
|
|
//! Return current composition |
|
|
QgsComposition* composition( void ) { return mComposition; } |
|
|
QgsComposition* composition() { return mComposition; } |
|
|
|
|
|
//! Restore the window and toolbar state |
|
|
void restoreWindowState(); |
|
|
|
@@ -9763,7 +9763,7 @@ void QgisApp::selectionChanged( QgsMapLayer *layer ) |
|
|
} |
|
|
} |
|
|
|
|
|
void QgisApp::legendLayerSelectionChanged( void ) |
|
|
void QgisApp::legendLayerSelectionChanged() |
|
|
{ |
|
|
QList<QgsLayerTreeLayer*> selectedLayers = mLayerTreeView ? mLayerTreeView->selectedLayerNodes() : QList<QgsLayerTreeLayer*>(); |
|
|
|
|
|
|
@@ -643,7 +643,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow |
|
|
void toolButtonActionTriggered( QAction * ); |
|
|
|
|
|
//! layer selection changed |
|
|
void legendLayerSelectionChanged( void ); |
|
|
void legendLayerSelectionChanged(); |
|
|
|
|
|
//! Watch for QFileOpenEvent. |
|
|
virtual bool event( QEvent *event ) override; |
|
|
|
@@ -74,7 +74,7 @@ QgsIdentifyResultsWebView::QgsIdentifyResultsWebView( QWidget *parent ) : QgsWeb |
|
|
#endif |
|
|
} |
|
|
|
|
|
void QgsIdentifyResultsWebView::print( void ) |
|
|
void QgsIdentifyResultsWebView::print() |
|
|
{ |
|
|
QPrinter printer; |
|
|
QPrintDialog *dialog = new QPrintDialog( &printer ); |
|
|
|
@@ -56,7 +56,7 @@ class APP_EXPORT QgsIdentifyResultsWebView : public QgsWebView |
|
|
QgsIdentifyResultsWebView( QWidget *parent = nullptr ); |
|
|
QSize sizeHint() const override; |
|
|
public slots: |
|
|
void print( void ); |
|
|
void print(); |
|
|
protected: |
|
|
void contextMenuEvent( QContextMenuEvent* ) override; |
|
|
QgsWebView *createWindow( QWebPage::WebWindowType type ) override; |
|
|
|
@@ -272,7 +272,7 @@ void QgsLabelDialog::init() |
|
|
|
|
|
|
|
|
|
|
|
void QgsLabelDialog::changeFont( void ) |
|
|
void QgsLabelDialog::changeFont() |
|
|
{ |
|
|
QgsDebugMsg( "entering." ); |
|
|
|
|
@@ -290,7 +290,7 @@ void QgsLabelDialog::changeFont( void ) |
|
|
lblSample->setFont( mFont ); |
|
|
} |
|
|
|
|
|
void QgsLabelDialog::changeFontColor( void ) |
|
|
void QgsLabelDialog::changeFontColor() |
|
|
{ |
|
|
QgsDebugMsg( "entering." ); |
|
|
|
|
@@ -304,7 +304,7 @@ void QgsLabelDialog::changeFontColor( void ) |
|
|
lblSample->setPalette( palette ); |
|
|
} |
|
|
|
|
|
void QgsLabelDialog::changeBufferColor( void ) |
|
|
void QgsLabelDialog::changeBufferColor() |
|
|
{ |
|
|
QgsDebugMsg( "entering." ); |
|
|
|
|
|
|
@@ -59,7 +59,7 @@ class APP_EXPORT QgsLabelDialog: public QWidget, private Ui::QgsLabelDialogBase |
|
|
|
|
|
public slots: |
|
|
/** Applies the changes to the label class */ |
|
|
void apply( void ); |
|
|
void apply(); |
|
|
|
|
|
/** Change font - reimplements method from base class*/ |
|
|
void changeFont(); |
|
@@ -69,7 +69,7 @@ class APP_EXPORT QgsLabelDialog: public QWidget, private Ui::QgsLabelDialogBase |
|
|
void changeFontColor(); |
|
|
|
|
|
/** Initialise dialog to vector layer values */ |
|
|
void init( void ); |
|
|
void init(); |
|
|
|
|
|
void on_cboLabelField_activated( int ) {emit labelSourceSet(); } |
|
|
|
|
|
|
@@ -36,10 +36,10 @@ class APP_EXPORT QgsMeasureDialog : public QDialog, private Ui::QgsMeasureBase |
|
|
QgsMeasureDialog( QgsMeasureTool* tool, Qt::WindowFlags f = nullptr ); |
|
|
|
|
|
//! Save position |
|
|
void saveWindowLocation( void ); |
|
|
void saveWindowLocation(); |
|
|
|
|
|
//! Restore last window position/size |
|
|
void restorePosition( void ); |
|
|
void restorePosition(); |
|
|
|
|
|
//! Add new point |
|
|
void addPoint( const QgsPoint &point ); |
|
|
|
@@ -384,7 +384,7 @@ void QgsVectorLayerProperties::setDisplayField( const QString& name ) |
|
|
} |
|
|
|
|
|
//! @note in raster props, this method is called sync() |
|
|
void QgsVectorLayerProperties::syncToLayer( void ) |
|
|
void QgsVectorLayerProperties::syncToLayer() |
|
|
{ |
|
|
// populate the general information |
|
|
mLayerOrigNameLineEdit->setText( layer->originalName() ); |
|
|
|
@@ -248,7 +248,7 @@ QgsMapSettings QgsComposerMap::mapSettings( const QgsRectangle& extent, QSizeF s |
|
|
return jobMapSettings; |
|
|
} |
|
|
|
|
|
void QgsComposerMap::cache( void ) |
|
|
void QgsComposerMap::cache() |
|
|
{ |
|
|
if ( mPreviewMode == Rectangle ) |
|
|
{ |
|
|
|
@@ -166,7 +166,7 @@ QByteArray QextSerialPort::readAll() |
|
|
Returns the baud rate of the serial port. For a list of possible return values see |
|
|
the definition of the enum BaudRateType. |
|
|
*/ |
|
|
BaudRateType QextSerialPort::baudRate(void) const |
|
|
BaudRateType QextSerialPort::baudRate() const |
|
|
{ |
|
|
return Settings.BaudRate; |
|
|
} |
|
|
|
@@ -382,7 +382,7 @@ QSet<QString> QgsFeatureRequest::OrderBy::usedAttributes() const |
|
|
return usedAttributes; |
|
|
} |
|
|
|
|
|
QString QgsFeatureRequest::OrderBy::dump( void ) const |
|
|
QString QgsFeatureRequest::OrderBy::dump() const |
|
|
{ |
|
|
QStringList results; |
|
|
|
|
|
|
@@ -483,7 +483,7 @@ void QgsLabel::setFields( const QgsFields & fields ) |
|
|
mFields = fields; |
|
|
} |
|
|
|
|
|
QgsFields & QgsLabel::fields( void ) |
|
|
QgsFields & QgsLabel::fields( ) |
|
|
{ |
|
|
return mFields; |
|
|
} |
|
@@ -507,7 +507,7 @@ QString QgsLabel::labelField( int attr ) const |
|
|
return mFields.at( fieldIndex ).name(); |
|
|
} |
|
|
|
|
|
QgsLabelAttributes *QgsLabel::labelAttributes( void ) |
|
|
QgsLabelAttributes *QgsLabel::labelAttributes() |
|
|
{ |
|
|
return mLabelAttributes; |
|
|
} |
|
|
Oops, something went wrong.