API request time change, PictureDialog size fix

This commit is contained in:
Rafael 2016-04-11 19:40:49 +02:00
parent 31d58d5b53
commit 321398f674
3 changed files with 13 additions and 11 deletions

View File

@ -43,12 +43,12 @@ void DatabaseThread::run()
// Quick time scan
if (crewList.length() <= 3)
{
scanCrewMembersList(crewList, 3, 1000);
scanCrewMembersList(crewList, 3, 2500);
emit playerNameUpdated();
}
else if (crewList.length() <= 5)
{
scanCrewMembersList(crewList, 2, 1000);
scanCrewMembersList(crewList, 2, 2500);
emit playerNameUpdated();
}

View File

@ -125,14 +125,6 @@ void PictureDialog::setSnapmaticPicture(SnapmaticPicture *picture, QString pictu
ui->labJSON->setText(jsonDrawString.arg("0.0", "0.0", "0.0", tr("No player"), tr("No crew")));
QMessageBox::warning(this,tr("Snapmatic Picture Viewer"),tr("Failed at %1").arg(picture->getLastStep()));
}
int jsn_h = ui->jsonFrame->height();
int spc_h = layout()->spacing();
int pix_h = snapmaticPicture.height();
int frm_h = jsn_h+spc_h+pix_h;
this->setMinimumSize(960, frm_h);
this->setMaximumSize(960, frm_h);
}
void PictureDialog::playerNameUpdated()

View File

@ -516,8 +516,18 @@ void ProfileInterface::exportSelected()
inputDialogItems << tr("JPG pictures only");
inputDialogItems << tr("GTA Snapmatic only");
QString ExportPreSpan;
QString ExportPostSpan;
#ifdef GTA5SYNC_WIN
ExportPreSpan = "<span style=\"color: #003399; font-size: 12pt\">";
ExportPostSpan = "</span>";
#else
ExportPreSpan = "<span style=\"font-weight: bold\">";
ExportPostSpan = "</span>";
#endif
bool itemSelected = false;
QString selectedItem = inputDialog.getItem(this, tr("Export selected"), tr("Export Snapmatic pictures\n\nJPG pictures make it possible to open the picture with a Image Viewer\nGTA Snapmatic make it possible to import the picture into the game\n\nExport as:"), inputDialogItems, 0, false, &itemSelected, inputDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
QString selectedItem = inputDialog.getItem(this, tr("Export selected"), tr("%1Export Snapmatic pictures%2<br><br>JPG pictures make it possible to open the picture with a Image Viewer<br>GTA Snapmatic make it possible to import the picture into the game<br><br>Export as:").arg(ExportPreSpan, ExportPostSpan), inputDialogItems, 0, false, &itemSelected, inputDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
if (itemSelected)
{
if (selectedItem == tr("JPG pictures and GTA Snapmatic"))