mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-13 14:02:15 -07:00
Lint.
This commit is contained in:
parent
5a685beba2
commit
39a890ba43
1 changed files with 5 additions and 7 deletions
|
|
@ -28,15 +28,14 @@ QString timeAgo(const QString ×tamp)
|
||||||
return QString("%1 minutes ago").arg(secs / 60);
|
return QString("%1 minutes ago").arg(secs / 60);
|
||||||
if (secs < 86400)
|
if (secs < 86400)
|
||||||
return QString("%1 hours ago").arg(secs / 3600);
|
return QString("%1 hours ago").arg(secs / 3600);
|
||||||
if (secs < 30*86400)
|
if (secs < 30 * 86400)
|
||||||
return QString("%1 days ago").arg(secs / 86400);
|
return QString("%1 days ago").arg(secs / 86400);
|
||||||
if (secs < 365*86400)
|
if (secs < 365 * 86400)
|
||||||
return QString("%1 months ago").arg(secs / (30*86400));
|
return QString("%1 months ago").arg(secs / (30 * 86400));
|
||||||
|
|
||||||
return QString("%1 years ago").arg(secs / (365*86400));
|
return QString("%1 years ago").arg(secs / (365 * 86400));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ArchidektApiResponseDeckEntryDisplayWidget::ArchidektApiResponseDeckEntryDisplayWidget(
|
ArchidektApiResponseDeckEntryDisplayWidget::ArchidektApiResponseDeckEntryDisplayWidget(
|
||||||
QWidget *parent,
|
QWidget *parent,
|
||||||
ArchidektApiResponseDeckListingContainer _response,
|
ArchidektApiResponseDeckListingContainer _response,
|
||||||
|
|
@ -76,7 +75,6 @@ ArchidektApiResponseDeckEntryDisplayWidget::ArchidektApiResponseDeckEntryDisplay
|
||||||
// Views
|
// Views
|
||||||
previewWidget->bottomRightLabel->setText(QString("Views: %1").arg(response.getViewCount()));
|
previewWidget->bottomRightLabel->setText(QString("Views: %1").arg(response.getViewCount()));
|
||||||
|
|
||||||
|
|
||||||
// Use preview->imageLabel for image loading
|
// Use preview->imageLabel for image loading
|
||||||
picture = previewWidget->imageLabel;
|
picture = previewWidget->imageLabel;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue