mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[options] Provide float variants to gnc_register_plot_size_option.
This commit is contained in:
parent
3d275a3715
commit
0e9ed8cf0a
@ -484,6 +484,17 @@ void gnc_register_number_plot_size_option(GncOptionDB* db,
|
||||
const char* doc_string,
|
||||
int value);
|
||||
|
||||
inline void gnc_register_number_plot_size_option(GncOptionDB* db,
|
||||
const char* section, const char* name,
|
||||
const char* key,
|
||||
const char* doc_string,
|
||||
float value)
|
||||
{
|
||||
gnc_register_number_plot_size_option(db, section, name, key,
|
||||
doc_string, static_cast<int>(value));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* As above but takes a const GncOptionDBPtr& (const std::unique_ptr<GncOptionDB>&) for calling from C++.
|
||||
*/
|
||||
@ -498,6 +509,17 @@ inline void gnc_register_number_plot_size_option(const GncOptionDBPtr& db,
|
||||
doc_string, value);
|
||||
}
|
||||
|
||||
inline void gnc_register_number_plot_size_option(const GncOptionDBPtr& db,
|
||||
const char* section,
|
||||
const char* name,
|
||||
const char* key,
|
||||
const char* doc_string,
|
||||
float value)
|
||||
{
|
||||
gnc_register_number_plot_size_option(db.get(), section, name, key,
|
||||
doc_string, static_cast<int>(value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new QofQuery option and register it in the options database.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user