summary refs log tree commit diff
path: root/src/ChatPage.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-17 18:43:40 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-17 18:43:40 +0200
commitfdd5051dcf832e07447aef45e4c5955ce2cc42aa (patch)
tree393877eb965f956ad23cf22a04966f10be7724f4 /src/ChatPage.cc
parentFix transparency issue on custom dialogs (diff)
downloadnheko-fdd5051dcf832e07447aef45e4c5955ce2cc42aa.tar.xz
Remove QPropertyAnimation from modals to work around a regression on Qt 5.10.1 (#87)
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r--src/ChatPage.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc

index 42884567..a5e3a6f8 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc
@@ -680,7 +680,7 @@ ChatPage::showQuickSwitcher() connect(quickSwitcher_.data(), &QuickSwitcher::closing, this, [=]() { if (!this->quickSwitcherModal_.isNull()) - this->quickSwitcherModal_->fadeOut(); + this->quickSwitcherModal_->hide(); this->text_input_->setFocus(Qt::FocusReason::PopupFocusReason); }); } @@ -689,7 +689,6 @@ ChatPage::showQuickSwitcher() quickSwitcherModal_ = QSharedPointer<OverlayModal>( new OverlayModal(MainWindow::instance(), quickSwitcher_.data()), [=](OverlayModal *modal) { modal->deleteLater(); }); - quickSwitcherModal_->setDuration(0); quickSwitcherModal_->setColor(QColor(30, 30, 30, 170)); } @@ -704,7 +703,7 @@ ChatPage::showQuickSwitcher() } quickSwitcher_->setRoomList(rooms); - quickSwitcherModal_->fadeIn(); + quickSwitcherModal_->show(); } void @@ -922,12 +921,11 @@ ChatPage::showReadReceipts(const QString &event_id) receiptsModal_ = QSharedPointer<OverlayModal>( new OverlayModal(MainWindow::instance(), receiptsDialog_.data()), [=](OverlayModal *modal) { modal->deleteLater(); }); - receiptsModal_->setDuration(0); receiptsModal_->setColor(QColor(30, 30, 30, 170)); } receiptsDialog_->addUsers(cache_->readReceipts(event_id, current_room_)); - receiptsModal_->fadeIn(); + receiptsModal_->show(); } void