mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-03 09:40:18 +00:00
GloSC-Main: Fix UI
This commit is contained in:
parent
6281dd4429
commit
7ba5efb639
@ -105,6 +105,8 @@ void GloSC::updateTargetsToNewVersion()
|
||||
|
||||
void GloSC::animate(int to)
|
||||
{
|
||||
if (to == width())
|
||||
return;
|
||||
QPropertyAnimation* anim = new QPropertyAnimation(this, "size");
|
||||
if (to > width())
|
||||
{
|
||||
@ -133,7 +135,7 @@ void GloSC::animate(int to)
|
||||
this->setMinimumWidth(to);
|
||||
|
||||
QPropertyAnimation* buttonAnim = new QPropertyAnimation(ui.pbCreateNew, "size");
|
||||
buttonAnim->setEasingCurve(QEasingCurve::OutExpo);
|
||||
buttonAnim->setEasingCurve(QEasingCurve::InExpo);
|
||||
buttonAnim->setDuration(360);
|
||||
buttonAnim->setStartValue(QSize(ui.pbCreateNew->width(), ui.pbCreateNew->height()));
|
||||
buttonAnim->setEndValue(QSize(small_x_create, ui.pbCreateNew->height()));
|
||||
@ -148,6 +150,16 @@ void GloSC::animate(int to)
|
||||
|
||||
void GloSC::on_pbCreateNew_clicked()
|
||||
{
|
||||
ui.leName->setText("");
|
||||
|
||||
ui.cbOverlay->setChecked(true);
|
||||
ui.cbControllers->setChecked(true);
|
||||
ui.cbHookSteam->setChecked(true);
|
||||
|
||||
ui.cbLaunchGame->setChecked(false);
|
||||
ui.lePath->setText("");
|
||||
ui.cbCloseWhenDone->setChecked(false);
|
||||
|
||||
animate(wide_x);
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>711</width>
|
||||
<width>302</width>
|
||||
<height>386</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -18,7 +18,7 @@
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>711</width>
|
||||
<width>302</width>
|
||||
<height>386</height>
|
||||
</size>
|
||||
</property>
|
||||
|
Loading…
Reference in New Issue
Block a user