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 projectBuild = QString("%1, %2").arg(__DATE__, __TIME__);
QString buildStr = QString("%1, %2").arg(QT_VERSION_STR, GTA5SYNC_COMPILER); QString buildStr = QString("%1, %2").arg(QT_VERSION_STR, GTA5SYNC_COMPILER);
QString projectDes = tr(GTA5SYNC_APPDES); 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"); 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"); 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(); if (navienabled) newDialogHeight = newDialogHeight + layout()->menuBar()->height();
setMinimumSize(width(), newDialogHeight); setMinimumSize(width(), newDialogHeight);
setMaximumSize(width(), newDialogHeight); setMaximumSize(width(), newDialogHeight);
resize(width(), newDialogHeight); setFixedHeight(newDialogHeight);
ui->labPicture->updateGeometry(); ui->labPicture->updateGeometry();
ui->jsonFrame->updateGeometry(); ui->jsonFrame->updateGeometry();
updateGeometry();
} }
void PictureDialog::stylizeDialog() void PictureDialog::stylizeDialog()

View File

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