From 8b5a1036e06e794150aec8288846e113341680b3 Mon Sep 17 00:00:00 2001 From: hunbernd Date: Sat, 5 Oct 2019 19:23:59 +0200 Subject: [PATCH] Waiting cursor while loading --- retroshare-gui/src/gui/common/Emoticons.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retroshare-gui/src/gui/common/Emoticons.cpp b/retroshare-gui/src/gui/common/Emoticons.cpp index 37e40e72f..bdb4a89cc 100644 --- a/retroshare-gui/src/gui/common/Emoticons.cpp +++ b/retroshare-gui/src/gui/common/Emoticons.cpp @@ -306,6 +306,7 @@ void Emoticons::showStickerWidget(QWidget *parent, QWidget *button, const char * QWidget *smWidget = new QWidget(parent, Qt::Popup) ; smWidget->setAttribute(Qt::WA_DeleteOnClose) ; smWidget->setWindowTitle("Stickers") ; + QApplication::setOverrideCursor(Qt::WaitCursor); if(StickerGroups.count() == 0) { QMessageBox::warning(parent, "Stickers", "No stickers installed"); @@ -444,10 +445,12 @@ void Emoticons::showStickerWidget(QWidget *parent, QWidget *button, const char * smWidget->move(x, y); smWidget->show(); + QApplication::restoreOverrideCursor(); } void Emoticons::loadToolTips(QWidget *container) { + QApplication::setOverrideCursor(Qt::WaitCursor); QList children = container->findChildren(); for(int i = 0; i < children.length(); ++i) { if(!children[i]->toolTip().contains('<')) { @@ -464,4 +467,5 @@ void Emoticons::loadToolTips(QWidget *container) } } + QApplication::restoreOverrideCursor(); }