Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #8507
made void connectNotify( const char * signal ) protected instead of private
made bool eventFilter( QObject *obj, QEvent *event ) protected instead of private
made void showEvent( QShowEvent * ) and void hideEvent( QHideEvent * ) instead of private
  • Loading branch information
christianurich authored and m-kuhn committed Sep 10, 2013
1 parent bb002ee commit 641359d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
9 changes: 5 additions & 4 deletions src/core/qgsmaplayerregistry.h
Expand Up @@ -239,17 +239,18 @@ class CORE_EXPORT QgsMapLayerRegistry : public QObject
//! protected constructor
QgsMapLayerRegistry( QObject * parent = 0 );

/** debugging member
invoked when a connect() is made to this object
*/
void connectNotify( const char * signal );

private:

static QgsMapLayerRegistry* mInstance;

QMap<QString, QgsMapLayer*> mMapLayers;
QSet<QgsMapLayer*> mOwnedLayers;

/** debugging member
invoked when a connect() is made to this object
*/
void connectNotify( const char * signal );


}; // class QgsMapLayerRegistry
Expand Down
3 changes: 2 additions & 1 deletion src/gui/qgsattributedialog.h
Expand Up @@ -59,9 +59,10 @@ class GUI_EXPORT QgsAttributeDialog : public QObject

void dialogDestroyed();

private:
protected:
bool eventFilter( QObject *obj, QEvent *event );

private:
QDialog *mDialog;
QString mSettingsPath;
// Used to sync multiple widgets for the same field
Expand Down
10 changes: 5 additions & 5 deletions src/gui/qgsmapcanvas.h
Expand Up @@ -410,6 +410,11 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
/// Handle pattern for implementation object
std::auto_ptr<CanvasProperties> mCanvasProperties;

/**debugging member
invoked when a connect() is made to this object
*/
void connectNotify( const char * signal );

private slots:
void crsTransformEnabled( bool );

Expand Down Expand Up @@ -459,11 +464,6 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
the last entry in case a lot of resize events arrive in short time*/
QList< QPair<int, int> > mResizeQueue;

/**debugging member
invoked when a connect() is made to this object
*/
void connectNotify( const char * signal );

//! current layer in legend
QgsMapLayer* mCurrentLayer;

Expand Down
3 changes: 2 additions & 1 deletion src/gui/qgsmessagelogviewer.h
Expand Up @@ -42,10 +42,11 @@ class GUI_EXPORT QgsMessageLogViewer: public QDialog, private Ui::QgsMessageLogV
public slots:
void logMessage( QString message, QString tag, QgsMessageLog::MessageLevel level );

private:
protected:
void showEvent( QShowEvent * );
void hideEvent( QHideEvent * );

private:
QToolButton *mButton;
int mCount;

Expand Down

0 comments on commit 641359d

Please sign in to comment.