resolve outstanding: using Qt5 connections instead of the old Qt4 ones
This commit is contained in:
parent
6f45cc5a00
commit
af0f9510f8
7 changed files with 34 additions and 34 deletions
|
@ -71,8 +71,8 @@ CAnalyzerConsole::CAnalyzerConsole ( CClient* pNCliP,
|
|||
|
||||
// Connections -------------------------------------------------------------
|
||||
// timers
|
||||
QObject::connect ( &TimerErrRateUpdate, SIGNAL ( timeout() ),
|
||||
this, SLOT ( OnTimerErrRateUpdate() ) );
|
||||
QObject::connect ( &TimerErrRateUpdate, &QTimer::timeout,
|
||||
this, &CAnalyzerConsole::OnTimerErrRateUpdate );
|
||||
}
|
||||
|
||||
void CAnalyzerConsole::showEvent ( QShowEvent* )
|
||||
|
|
|
@ -400,26 +400,26 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
|||
this, &CClientSettingsDlg::OnNewClientLevelEditingFinished );
|
||||
|
||||
// combo boxes
|
||||
QObject::connect ( cbxSoundcard, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnSoundcardActivated ( int ) ) );
|
||||
QObject::connect ( cbxSoundcard, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CClientSettingsDlg::OnSoundcardActivated );
|
||||
|
||||
QObject::connect ( cbxLInChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnLInChanActivated ( int ) ) );
|
||||
QObject::connect ( cbxLInChan, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CClientSettingsDlg::OnLInChanActivated );
|
||||
|
||||
QObject::connect ( cbxRInChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnRInChanActivated ( int ) ) );
|
||||
QObject::connect ( cbxRInChan, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CClientSettingsDlg::OnRInChanActivated );
|
||||
|
||||
QObject::connect ( cbxLOutChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnLOutChanActivated ( int ) ) );
|
||||
QObject::connect ( cbxLOutChan, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CClientSettingsDlg::OnLOutChanActivated );
|
||||
|
||||
QObject::connect ( cbxROutChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnROutChanActivated ( int ) ) );
|
||||
QObject::connect ( cbxROutChan, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CClientSettingsDlg::OnROutChanActivated );
|
||||
|
||||
QObject::connect ( cbxAudioChannels, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnAudioChannelsActivated ( int ) ) );
|
||||
QObject::connect ( cbxAudioChannels, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CClientSettingsDlg::OnAudioChannelsActivated );
|
||||
|
||||
QObject::connect ( cbxAudioQuality, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnAudioQualityActivated ( int ) ) );
|
||||
QObject::connect ( cbxAudioQuality, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CClientSettingsDlg::OnAudioQualityActivated );
|
||||
|
||||
// buttons
|
||||
QObject::connect ( butDriverSetup, &QPushButton::clicked,
|
||||
|
|
|
@ -169,8 +169,8 @@ CConnectDlg::CConnectDlg ( CClient* pNCliP,
|
|||
QObject::connect ( cbxServerAddr, &QComboBox::editTextChanged,
|
||||
this, &CConnectDlg::OnServerAddrEditTextChanged );
|
||||
|
||||
QObject::connect ( cbxCentServAddrType, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnCentServAddrTypeChanged ( int ) ) );
|
||||
QObject::connect ( cbxCentServAddrType, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CConnectDlg::OnCentServAddrTypeChanged );
|
||||
|
||||
// check boxes
|
||||
QObject::connect ( chbExpandAll, &QCheckBox::stateChanged,
|
||||
|
|
|
@ -59,8 +59,8 @@ CHighPrecisionTimer::CHighPrecisionTimer ( const bool bNewUseDoubleSystemFrameSi
|
|||
veciTimeOutIntervals[2] = 0;
|
||||
|
||||
// connect timer timeout signal
|
||||
QObject::connect ( &Timer, SIGNAL ( timeout() ),
|
||||
this, SLOT ( OnTimer() ) );
|
||||
QObject::connect ( &Timer, &QTimer::timeout,
|
||||
this, &CHighPrecisionTimer::OnTimer );
|
||||
}
|
||||
|
||||
void CHighPrecisionTimer::Start()
|
||||
|
|
|
@ -357,11 +357,11 @@ lvwClients->setMinimumHeight ( 140 );
|
|||
this, &CServerDlg::OnLocationCityTextChanged );
|
||||
|
||||
// combo boxes
|
||||
QObject::connect ( cbxLocationCountry, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnLocationCountryActivated ( int ) ) );
|
||||
QObject::connect ( cbxLocationCountry, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CServerDlg::OnLocationCountryActivated );
|
||||
|
||||
QObject::connect ( cbxCentServAddrType, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnCentServAddrTypeActivated ( int ) ) );
|
||||
QObject::connect ( cbxCentServAddrType, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CServerDlg::OnCentServAddrTypeActivated );
|
||||
|
||||
// push buttons
|
||||
QObject::connect ( pbtNewRecording, &QPushButton::released,
|
||||
|
|
|
@ -117,8 +117,8 @@ void CSocket::Init ( const quint16 iPortNumber )
|
|||
QObject::connect ( this, &CSocket::ProtcolCLMessageReceived,
|
||||
pChannel, &CChannel::OnProtcolCLMessageReceived );
|
||||
|
||||
QObject::connect ( this, SIGNAL ( NewConnection() ),
|
||||
pChannel, SLOT ( OnNewConnection() ) );
|
||||
QObject::connect ( this, static_cast<void (CSocket::*)()> ( &CSocket::NewConnection ),
|
||||
pChannel, &CChannel::OnNewConnection );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -130,8 +130,8 @@ void CSocket::Init ( const quint16 iPortNumber )
|
|||
QObject::connect ( this, &CSocket::ProtcolCLMessageReceived,
|
||||
pServer, &CServer::OnProtcolCLMessageReceived );
|
||||
|
||||
QObject::connect ( this, SIGNAL ( NewConnection ( int, CHostAddress ) ),
|
||||
pServer, SLOT ( OnNewConnection ( int, CHostAddress ) ) );
|
||||
QObject::connect ( this, static_cast<void (CSocket::*) ( int, CHostAddress )> ( &CSocket::NewConnection ),
|
||||
pServer, &CServer::OnNewConnection );
|
||||
|
||||
QObject::connect ( this, &CSocket::ServerFull,
|
||||
pServer, &CServer::OnServerFull );
|
||||
|
|
12
src/util.cpp
12
src/util.cpp
|
@ -731,17 +731,17 @@ CMusProfDlg::CMusProfDlg ( CClient* pNCliP,
|
|||
QObject::connect ( pedtAlias, &QLineEdit::textChanged,
|
||||
this, &CMusProfDlg::OnAliasTextChanged );
|
||||
|
||||
QObject::connect ( pcbxInstrument, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnInstrumentActivated ( int ) ) );
|
||||
QObject::connect ( pcbxInstrument, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CMusProfDlg::OnInstrumentActivated );
|
||||
|
||||
QObject::connect ( pcbxCountry, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnCountryActivated ( int ) ) );
|
||||
QObject::connect ( pcbxCountry, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CMusProfDlg::OnCountryActivated );
|
||||
|
||||
QObject::connect ( pedtCity, &QLineEdit::textChanged,
|
||||
this, &CMusProfDlg::OnCityTextChanged );
|
||||
|
||||
QObject::connect ( pcbxSkill, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnSkillActivated ( int ) ) );
|
||||
QObject::connect ( pcbxSkill, static_cast<void (QComboBox::*) ( int )> ( &QComboBox::activated ),
|
||||
this, &CMusProfDlg::OnSkillActivated );
|
||||
|
||||
QObject::connect ( butClose, &QPushButton::clicked,
|
||||
this, &CMusProfDlg::accept );
|
||||
|
|
Loading…
Reference in a new issue