2
0
mirror of https://github.com/Thracky/GlosSI.git synced 2024-11-17 03:26:02 +00:00
This commit is contained in:
Peter Repukat 2017-11-12 01:03:14 +01:00
parent e68bf9835d
commit 4caaa3f1bc
2 changed files with 22 additions and 20 deletions

View File

@ -220,6 +220,7 @@ void GloSC::on_pbAddToSteam_clicked()
QFile shortcutsFile(steamPath + "/userdata/" + activeUser + "/config/shortcuts.vdf");
//TODO: FIXME: If User has no shortcuts file, create one!
if (!shortcutsFile.exists())
{
QMessageBox::information(this, "GloSC", "Couldn't detect Steam shortcuts file!\nSteam must be running for it to be detected", QMessageBox::Ok);
@ -341,6 +342,7 @@ void GloSC::on_pbSearchPath_clicked()
void GloSC::on_pbUWP_clicked()
{
//TODO: FIXME: Make Async
QSettings *settings = new QSettings("HKEY_CLASSES_ROOT", QSettings::NativeFormat);
QStringList childs = settings->childGroups();
@ -488,21 +490,21 @@ void GloSC::on_lwInstances_itemSelectionChanged()
{
animate(wide_x);
} else {
//ui.configBox->setGraphicsEffect(&opEff);
//QPropertyAnimation* anim = new QPropertyAnimation(&opEff, "opacity");
//anim->setEasingCurve(QEasingCurve::OutExpo);
//anim->setDuration(160);
//anim->setStartValue(1.f);
//anim->setEndValue(0.f);
//connect(anim, &QPropertyAnimation::finished, this, [this]()
//{
// QPropertyAnimation* anim2 = new QPropertyAnimation(&opEff, "opacity");
// anim2->setEasingCurve(QEasingCurve::InExpo);
// anim2->setDuration(160);
// anim2->setStartValue(0.f);
// anim2->setEndValue(1.f);
// anim2->start(QPropertyAnimation::DeleteWhenStopped);
//});
//anim->start(QPropertyAnimation::DeleteWhenStopped);
ui.configBox->setGraphicsEffect(&opEff);
QPropertyAnimation* anim = new QPropertyAnimation(&opEff, "opacity");
anim->setEasingCurve(QEasingCurve::OutExpo);
anim->setDuration(160);
anim->setStartValue(1.f);
anim->setEndValue(0.f);
connect(anim, &QPropertyAnimation::finished, this, [this]()
{
QPropertyAnimation* anim2 = new QPropertyAnimation(&opEff, "opacity");
anim2->setEasingCurve(QEasingCurve::InExpo);
anim2->setDuration(160);
anim2->setStartValue(0.f);
anim2->setEndValue(1.f);
anim2->start(QPropertyAnimation::DeleteWhenStopped);
});
anim->start(QPropertyAnimation::DeleteWhenStopped);
}
}

View File

@ -53,7 +53,7 @@ private:
QList<UWPPair> uwpPairs;
const unsigned int GLOSC_VERSION = 0x00000122;
const unsigned int GLOSC_VERSION = 0x00000140; //Version Number in as bytes, just remove the dots.
int wide_x = 711;
int small_x = 302;