mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-29 23:26:00 +00:00
Change the cursor to a wait cursor when applying settings in the settings dialog.
--HG-- branch : hotfix
This commit is contained in:
parent
44c6f93b26
commit
28b0a0a040
1 changed files with 11 additions and 0 deletions
|
@ -145,11 +145,17 @@ void SettingsDialog::pageSelected()
|
||||||
void SettingsDialog::accept()
|
void SettingsDialog::accept()
|
||||||
{
|
{
|
||||||
m_applied = true;
|
m_applied = true;
|
||||||
|
|
||||||
|
setCursor( Qt::WaitCursor );
|
||||||
|
|
||||||
Q_FOREACH(IOptionsPage *page, m_pages)
|
Q_FOREACH(IOptionsPage *page, m_pages)
|
||||||
{
|
{
|
||||||
page->apply();
|
page->apply();
|
||||||
page->finish();
|
page->finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setCursor( Qt::ArrowCursor );
|
||||||
|
|
||||||
done(QDialog::Accepted);
|
done(QDialog::Accepted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -162,8 +168,13 @@ void SettingsDialog::reject()
|
||||||
|
|
||||||
void SettingsDialog::apply()
|
void SettingsDialog::apply()
|
||||||
{
|
{
|
||||||
|
setCursor( Qt::WaitCursor );
|
||||||
|
|
||||||
Q_FOREACH(IOptionsPage *page, m_pages)
|
Q_FOREACH(IOptionsPage *page, m_pages)
|
||||||
page->apply();
|
page->apply();
|
||||||
|
|
||||||
|
setCursor( Qt::ArrowCursor );
|
||||||
|
|
||||||
m_applied = true;
|
m_applied = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue