mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
Waiting cursor while loading
This commit is contained in:
parent
5bd07b4a55
commit
8b5a1036e0
@ -306,6 +306,7 @@ void Emoticons::showStickerWidget(QWidget *parent, QWidget *button, const char *
|
|||||||
QWidget *smWidget = new QWidget(parent, Qt::Popup) ;
|
QWidget *smWidget = new QWidget(parent, Qt::Popup) ;
|
||||||
smWidget->setAttribute(Qt::WA_DeleteOnClose) ;
|
smWidget->setAttribute(Qt::WA_DeleteOnClose) ;
|
||||||
smWidget->setWindowTitle("Stickers") ;
|
smWidget->setWindowTitle("Stickers") ;
|
||||||
|
QApplication::setOverrideCursor(Qt::WaitCursor);
|
||||||
|
|
||||||
if(StickerGroups.count() == 0) {
|
if(StickerGroups.count() == 0) {
|
||||||
QMessageBox::warning(parent, "Stickers", "No stickers installed");
|
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->move(x, y);
|
||||||
smWidget->show();
|
smWidget->show();
|
||||||
|
QApplication::restoreOverrideCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Emoticons::loadToolTips(QWidget *container)
|
void Emoticons::loadToolTips(QWidget *container)
|
||||||
{
|
{
|
||||||
|
QApplication::setOverrideCursor(Qt::WaitCursor);
|
||||||
QList<QPushButton *> children = container->findChildren<QPushButton *>();
|
QList<QPushButton *> children = container->findChildren<QPushButton *>();
|
||||||
for(int i = 0; i < children.length(); ++i) {
|
for(int i = 0; i < children.length(); ++i) {
|
||||||
if(!children[i]->toolTip().contains('<')) {
|
if(!children[i]->toolTip().contains('<')) {
|
||||||
@ -464,4 +467,5 @@ void Emoticons::loadToolTips(QWidget *container)
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
QApplication::restoreOverrideCursor();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user