mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Remove a few casts
This commit is contained in:
parent
19dc6cadea
commit
0f4b482bb3
2 changed files with 4 additions and 4 deletions
|
@ -120,7 +120,7 @@ void
|
||||||
DelegateChooser::DelegateIncubator::statusChanged(QQmlIncubator::Status status)
|
DelegateChooser::DelegateIncubator::statusChanged(QQmlIncubator::Status status)
|
||||||
{
|
{
|
||||||
if (status == QQmlIncubator::Ready) {
|
if (status == QQmlIncubator::Ready) {
|
||||||
chooser.child_ = dynamic_cast<QQuickItem *>(object());
|
chooser.child_ = qobject_cast<QQuickItem *>(object());
|
||||||
if (chooser.child_ == nullptr) {
|
if (chooser.child_ == nullptr) {
|
||||||
nhlog::ui()->error("Delegate has to be derived of Item!");
|
nhlog::ui()->error("Delegate has to be derived of Item!");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -328,15 +328,15 @@ TimelineViewManager::TimelineViewManager(CallManager *callManager, ChatPage *par
|
||||||
view->setSource(QUrl(QStringLiteral("qrc:///qml/Root.qml")));
|
view->setSource(QUrl(QStringLiteral("qrc:///qml/Root.qml")));
|
||||||
|
|
||||||
connect(parent, &ChatPage::themeChanged, this, &TimelineViewManager::updateColorPalette);
|
connect(parent, &ChatPage::themeChanged, this, &TimelineViewManager::updateColorPalette);
|
||||||
connect(dynamic_cast<ChatPage *>(parent),
|
connect(parent,
|
||||||
&ChatPage::receivedRoomDeviceVerificationRequest,
|
&ChatPage::receivedRoomDeviceVerificationRequest,
|
||||||
verificationManager_,
|
verificationManager_,
|
||||||
&VerificationManager::receivedRoomDeviceVerificationRequest);
|
&VerificationManager::receivedRoomDeviceVerificationRequest);
|
||||||
connect(dynamic_cast<ChatPage *>(parent),
|
connect(parent,
|
||||||
&ChatPage::receivedDeviceVerificationRequest,
|
&ChatPage::receivedDeviceVerificationRequest,
|
||||||
verificationManager_,
|
verificationManager_,
|
||||||
&VerificationManager::receivedDeviceVerificationRequest);
|
&VerificationManager::receivedDeviceVerificationRequest);
|
||||||
connect(dynamic_cast<ChatPage *>(parent),
|
connect(parent,
|
||||||
&ChatPage::receivedDeviceVerificationStart,
|
&ChatPage::receivedDeviceVerificationStart,
|
||||||
verificationManager_,
|
verificationManager_,
|
||||||
&VerificationManager::receivedDeviceVerificationStart);
|
&VerificationManager::receivedDeviceVerificationStart);
|
||||||
|
|
Loading…
Reference in a new issue