Added "moving disque" easter egg to 'About' dialog. (Hotfix)
This commit is contained in:
parent
ec73927da4
commit
f4fd021cae
@ -75,7 +75,9 @@ g_lamexp_contributors[] =
|
||||
AboutDialog::AboutDialog(SettingsModel *settings, QWidget *parent, bool firstStart)
|
||||
:
|
||||
QMessageBox(parent),
|
||||
m_settings(settings)
|
||||
m_settings(settings),
|
||||
m_disque(NULL),
|
||||
m_disqueTimer(NULL)
|
||||
{
|
||||
const QString versionStr = QString().sprintf
|
||||
(
|
||||
@ -475,6 +477,8 @@ void AboutDialog::moveDisque(void)
|
||||
{
|
||||
static const int delta = 2;
|
||||
|
||||
if(m_disque)
|
||||
{
|
||||
QPoint pos = m_disque->pos();
|
||||
pos.setX(m_disqueFlags[0] ? pos.x() + delta : pos.x() - delta);
|
||||
pos.setY(m_disqueFlags[1] ? pos.y() + delta : pos.y() - delta);
|
||||
@ -502,6 +506,7 @@ void AboutDialog::moveDisque(void)
|
||||
{
|
||||
m_disque->setWindowOpacity(m_disque->windowOpacity() + 0.01);
|
||||
}
|
||||
}
|
||||
}
|
||||
////////////////////////////////////////////////////////////
|
||||
// Protected Functions
|
||||
|
Loading…
x
Reference in New Issue
Block a user