mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	Mark some internal methods as private
This commit is contained in:
		
							parent
							
								
									bdd951aa6b
								
							
						
					
					
						commit
						36f0952452
					
				@ -146,7 +146,6 @@ Signal emitted whenever the value changes.
 | 
			
		||||
    virtual void showEvent( QShowEvent *event );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    QgsDateTimeEdit( const QVariant &var, QVariant::Type parserType, QWidget *parent );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -168,7 +167,7 @@ Returns ``True`` if the widget is currently set to a null value
 | 
			
		||||
%End
 | 
			
		||||
 | 
			
		||||
  protected slots:
 | 
			
		||||
    void changed( const QVariant &dateTime );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -34,6 +34,7 @@ QgsDateTimeEdit::QgsDateTimeEdit( QWidget *parent )
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
///@cond PRIVATE
 | 
			
		||||
QgsDateTimeEdit::QgsDateTimeEdit( const QVariant &var, QVariant::Type parserType, QWidget *parent )
 | 
			
		||||
  : QDateTimeEdit( var, parserType, parent )
 | 
			
		||||
  , mNullRepresentation( QgsApplication::nullRepresentation() )
 | 
			
		||||
@ -55,7 +56,7 @@ QgsDateTimeEdit::QgsDateTimeEdit( const QVariant &var, QVariant::Type parserType
 | 
			
		||||
  // init with current time so mIsNull is properly initialized
 | 
			
		||||
  QDateTimeEdit::setDateTime( QDateTime::currentDateTime() );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
///@endcond
 | 
			
		||||
 | 
			
		||||
void QgsDateTimeEdit::setAllowNull( bool allowNull )
 | 
			
		||||
{
 | 
			
		||||
@ -198,6 +199,7 @@ void QgsDateTimeEdit::showEvent( QShowEvent *event )
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
///@cond PRIVATE
 | 
			
		||||
void QgsDateTimeEdit::changed( const QVariant &dateTime )
 | 
			
		||||
{
 | 
			
		||||
  mIsEmpty = false;
 | 
			
		||||
@ -223,6 +225,7 @@ void QgsDateTimeEdit::changed( const QVariant &dateTime )
 | 
			
		||||
  if ( !mBlockChangedSignal )
 | 
			
		||||
    emitValueChanged( dateTime );
 | 
			
		||||
}
 | 
			
		||||
///@endcond
 | 
			
		||||
 | 
			
		||||
QString QgsDateTimeEdit::nullRepresentation() const
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
@ -130,7 +130,11 @@ class GUI_EXPORT QgsDateTimeEdit : public QDateTimeEdit
 | 
			
		||||
    void wheelEvent( QWheelEvent *event ) override;
 | 
			
		||||
    void showEvent( QShowEvent *event ) override;
 | 
			
		||||
 | 
			
		||||
#ifndef SIP_RUN
 | 
			
		||||
///@cond PRIVATE
 | 
			
		||||
    QgsDateTimeEdit( const QVariant &var, QVariant::Type parserType, QWidget *parent );
 | 
			
		||||
///@endcond
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    //! TRUE if the widget is empty
 | 
			
		||||
    bool mIsEmpty = false;
 | 
			
		||||
@ -155,7 +159,12 @@ class GUI_EXPORT QgsDateTimeEdit : public QDateTimeEdit
 | 
			
		||||
    bool isNull() const;
 | 
			
		||||
 | 
			
		||||
  protected slots:
 | 
			
		||||
#ifndef SIP_RUN
 | 
			
		||||
    ///@cond PRIVATE
 | 
			
		||||
    void changed( const QVariant &dateTime );
 | 
			
		||||
    ///@endcond
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  private:
 | 
			
		||||
    bool mCurrentPressEvent = false;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user