latest commits from gta5sync

This commit is contained in:
Rafael 2017-01-22 19:52:39 +01:00
parent de9d15529b
commit 144b3238df
3 changed files with 140 additions and 97 deletions

View file

@ -34,11 +34,11 @@ AboutDialog::AboutDialog(QWidget *parent) :
QString projectBuild = QString("%1, %2").arg(__DATE__, __TIME__);
QString buildStr = QString("%1, %2").arg(QT_VERSION_STR, GTA5SYNC_COMPILER);
QString projectDes = tr(GTA5SYNC_APPDES);
if (GTA5SYNC_APPSTR == "gta5view")
if (QString(GTA5SYNC_APPSTR) == "gta5view")
{
projectDes = tr("A project for viewing Grand Theft Auto V Snapmatic<br/>\nPictures and Savegames");
}
else if (GTA5SYNC_APPSTR == "gta5sync")
else if (QString(GTA5SYNC_APPSTR) == "gta5sync")
{
projectDes = tr("A project for viewing and sync Grand Theft Auto V Snapmatic<br/>\nPictures and Savegames");
}

View file

@ -137,9 +137,10 @@ void PictureDialog::adaptNewDialogSize(QSize newLabelSize)
if (navienabled) newDialogHeight = newDialogHeight + layout()->menuBar()->height();
setMinimumSize(width(), newDialogHeight);
setMaximumSize(width(), newDialogHeight);
resize(width(), newDialogHeight);
setFixedHeight(newDialogHeight);
ui->labPicture->updateGeometry();
ui->jsonFrame->updateGeometry();
updateGeometry();
}
void PictureDialog::stylizeDialog()

View file

@ -7,13 +7,34 @@
<x>0</x>
<y>0</y>
<width>375</width>
<height>306</height>
<height>305</height>
</rect>
</property>
<property name="windowTitle">
<string>Snapmatic Properties</string>
</property>
<layout class="QVBoxLayout" name="vlEditor">
<item>
<widget class="QWidget" name="frameWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QVBoxLayout" name="vlFrame">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QGroupBox" name="gbMode">
<property name="title">
@ -110,6 +131,12 @@
</item>
<item>
<widget class="QLabel" name="labQualify">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Qualify as Avatar allows you to use this Snapmatic as a Social Club profile picture</string>
</property>
@ -121,6 +148,9 @@
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="vsEditor">
<property name="orientation">
@ -151,6 +181,12 @@
</item>
<item>
<widget class="QPushButton" name="cmdApply">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Apply</string>
</property>
@ -161,6 +197,12 @@
</item>
<item>
<widget class="QPushButton" name="cmdCancel">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Cancel</string>
</property>