mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
Utility for test.
Took 9 minutes Took 8 seconds Took 2 seconds
This commit is contained in:
parent
b4e4d80ef5
commit
82d1ee9747
3 changed files with 7 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ private:
|
|||
public:
|
||||
UserInfoBox(AbstractClient *_client, bool editable, QWidget *parent = nullptr, Qt::WindowFlags flags = {});
|
||||
void retranslateUi();
|
||||
|
||||
private slots:
|
||||
void processResponse(const Response &r);
|
||||
void processEditResponse(const Response &r);
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ set(UTILITY_HEADERS
|
|||
libcockatrice/utility/passwordhasher.h
|
||||
libcockatrice/utility/trice_limits.h
|
||||
libcockatrice/utility/zone_names.h
|
||||
libcockatrice/utility/days_years_between.h
|
||||
)
|
||||
|
||||
add_library(libcockatrice_utility STATIC ${UTILITY_SOURCES} ${UTILITY_HEADERS})
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
#ifndef COCKATRICE_DAYS_YEARS_BETWEEN_H
|
||||
#define COCKATRICE_DAYS_YEARS_BETWEEN_H
|
||||
|
||||
#include <QDateTime>
|
||||
|
||||
inline static QPair<int, int> getDaysAndYearsBetween(const QDate &then, const QDate &now)
|
||||
|
|
@ -6,3 +9,5 @@ inline static QPair<int, int> getDaysAndYearsBetween(const QDate &then, const QD
|
|||
int days = then.addYears(years).daysTo(now);
|
||||
return {days, years};
|
||||
}
|
||||
|
||||
#endif // COCKATRICE_DAYS_YEARS_BETWEEN_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue