mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +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)
|
||||
{
|
||||
if (status == QQmlIncubator::Ready) {
|
||||
chooser.child_ = dynamic_cast<QQuickItem *>(object());
|
||||
chooser.child_ = qobject_cast<QQuickItem *>(object());
|
||||
if (chooser.child_ == nullptr) {
|
||||
nhlog::ui()->error("Delegate has to be derived of Item!");
|
||||
return;
|
||||
|
|
|
@ -328,15 +328,15 @@ TimelineViewManager::TimelineViewManager(CallManager *callManager, ChatPage *par
|
|||
view->setSource(QUrl(QStringLiteral("qrc:///qml/Root.qml")));
|
||||
|
||||
connect(parent, &ChatPage::themeChanged, this, &TimelineViewManager::updateColorPalette);
|
||||
connect(dynamic_cast<ChatPage *>(parent),
|
||||
connect(parent,
|
||||
&ChatPage::receivedRoomDeviceVerificationRequest,
|
||||
verificationManager_,
|
||||
&VerificationManager::receivedRoomDeviceVerificationRequest);
|
||||
connect(dynamic_cast<ChatPage *>(parent),
|
||||
connect(parent,
|
||||
&ChatPage::receivedDeviceVerificationRequest,
|
||||
verificationManager_,
|
||||
&VerificationManager::receivedDeviceVerificationRequest);
|
||||
connect(dynamic_cast<ChatPage *>(parent),
|
||||
connect(parent,
|
||||
&ChatPage::receivedDeviceVerificationStart,
|
||||
verificationManager_,
|
||||
&VerificationManager::receivedDeviceVerificationStart);
|
||||
|
|
Loading…
Reference in a new issue