mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-01-28 06:30:19 +08:00
fix deprecated warnings on Qt6.3+
This commit is contained in:
parent
42a78d79db
commit
a0917f9c62
@ -131,7 +131,11 @@ QString SingleApplicationPrivate::getUsername()
|
||||
void SingleApplicationPrivate::genBlockServerName()
|
||||
{
|
||||
QCryptographicHash appData( QCryptographicHash::Sha256 );
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 3, 0)
|
||||
appData.addData( "SingleApplication", 17 );
|
||||
#else
|
||||
appData.addData( QByteArrayView{"SingleApplication"} );
|
||||
#endif
|
||||
appData.addData( SingleApplication::app_t::applicationName().toUtf8() );
|
||||
appData.addData( SingleApplication::app_t::organizationName().toUtf8() );
|
||||
appData.addData( SingleApplication::app_t::organizationDomain().toUtf8() );
|
||||
|
Loading…
Reference in New Issue
Block a user