mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
UI item
This fixes the error: clang:optin.cplusplus.VirtualCall
This commit is contained in:
@@ -12,11 +12,6 @@ UI_item::UI_item(std::string type, QObject *parent)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
UI_item::UI_item(const json &j, QObject *parent) : QObject(parent)
|
|
||||||
{
|
|
||||||
from_json(j);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string UI_item::type() const
|
std::string UI_item::type() const
|
||||||
{
|
{
|
||||||
return m_type;
|
return m_type;
|
||||||
|
|||||||
@@ -35,13 +35,6 @@ class UI_item : public QObject
|
|||||||
* @param parent The parent QObject
|
* @param parent The parent QObject
|
||||||
*/
|
*/
|
||||||
explicit UI_item(std::string type, std::string text, Color fg_color, Color bg_color, QObject *parent = nullptr);
|
explicit UI_item(std::string type, std::string text, Color fg_color, Color bg_color, QObject *parent = nullptr);
|
||||||
/**
|
|
||||||
* @brief Construct a new UI item object from JSON
|
|
||||||
*
|
|
||||||
* @param j The JSON object
|
|
||||||
* @param parent The parent QObject
|
|
||||||
*/
|
|
||||||
explicit UI_item(const json &j, QObject *parent = nullptr);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the type of the UI item
|
* @brief Get the type of the UI item
|
||||||
|
|||||||
Reference in New Issue
Block a user