primitive color picker, asset form
This commit is contained in:
parent
9a5a0b27a2
commit
374551d2bb
12 changed files with 207 additions and 57 deletions
|
@ -3,13 +3,16 @@
|
|||
|
||||
#include "addasset.h"
|
||||
|
||||
Request::AddAsset::AddAsset (const QString& title, const QString& icon, const QColor& color, unsigned int currency, const QUrl& baseUrl):
|
||||
Request::AddAsset::AddAsset (
|
||||
const QString& title,
|
||||
const QString& icon,
|
||||
const QColor& color,
|
||||
Models::Currency::ID currency,
|
||||
const QUrl& baseUrl
|
||||
):
|
||||
Post(createUrl(baseUrl, "/addAsset"), {
|
||||
{"title", title},
|
||||
{"icon", icon},
|
||||
{"currency", std::to_string(currency).c_str()},
|
||||
{"color", std::to_string(color.rgba()).c_str()}
|
||||
})
|
||||
{"title", title}, {"icon", icon}, {"currency", std::to_string(currency).c_str()}, {"color", std::to_string(color.rgba()).c_str()}
|
||||
})
|
||||
{
|
||||
emptyResult = true;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <QColor>
|
||||
|
||||
#include "post.h"
|
||||
#include "models/currencies.h"
|
||||
|
||||
namespace Request {
|
||||
|
||||
|
@ -13,7 +14,13 @@ class AddAsset : public Post {
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
AddAsset (const QString& title, const QString& icon, const QColor& color, unsigned int currency, const QUrl& baseUrl);
|
||||
AddAsset (
|
||||
const QString& title,
|
||||
const QString& icon,
|
||||
const QColor& color,
|
||||
Models::Currency::ID currency,
|
||||
const QUrl& baseUrl
|
||||
);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue