GloSC-Main: Fix UI

UWP_Overlay
Peter Repukat 8 years ago
parent 6281dd4429
commit 7ba5efb639

@ -105,6 +105,8 @@ void GloSC::updateTargetsToNewVersion()
void GloSC::animate(int to) void GloSC::animate(int to)
{ {
if (to == width())
return;
QPropertyAnimation* anim = new QPropertyAnimation(this, "size"); QPropertyAnimation* anim = new QPropertyAnimation(this, "size");
if (to > width()) if (to > width())
{ {
@ -133,7 +135,7 @@ void GloSC::animate(int to)
this->setMinimumWidth(to); this->setMinimumWidth(to);
QPropertyAnimation* buttonAnim = new QPropertyAnimation(ui.pbCreateNew, "size"); QPropertyAnimation* buttonAnim = new QPropertyAnimation(ui.pbCreateNew, "size");
buttonAnim->setEasingCurve(QEasingCurve::OutExpo); buttonAnim->setEasingCurve(QEasingCurve::InExpo);
buttonAnim->setDuration(360); buttonAnim->setDuration(360);
buttonAnim->setStartValue(QSize(ui.pbCreateNew->width(), ui.pbCreateNew->height())); buttonAnim->setStartValue(QSize(ui.pbCreateNew->width(), ui.pbCreateNew->height()));
buttonAnim->setEndValue(QSize(small_x_create, 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() 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); animate(wide_x);
} }

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>711</width> <width>302</width>
<height>386</height> <height>386</height>
</rect> </rect>
</property> </property>
@ -18,7 +18,7 @@
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>711</width> <width>302</width>
<height>386</height> <height>386</height>
</size> </size>
</property> </property>

Loading…
Cancel
Save