Fix overloaded virtual warning
This commit is contained in:
@@ -8,6 +8,8 @@ private:
|
|||||||
int m_sort_role = Qt::DisplayRole;
|
int m_sort_role = Qt::DisplayRole;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
using QTableWidgetItem::setData;
|
||||||
|
|
||||||
custom_table_widget_item(){}
|
custom_table_widget_item(){}
|
||||||
custom_table_widget_item(const std::string& text, int sort_role = Qt::DisplayRole, const QVariant& sort_value = 0)
|
custom_table_widget_item(const std::string& text, int sort_role = Qt::DisplayRole, const QVariant& sort_value = 0)
|
||||||
: QTableWidgetItem(QString::fromStdString(text).simplified()) // simplified() forces single line text
|
: QTableWidgetItem(QString::fromStdString(text).simplified()) // simplified() forces single line text
|
||||||
@@ -31,7 +33,7 @@ public:
|
|||||||
return data(m_sort_role) < other.data(m_sort_role);
|
return data(m_sort_role) < other.data(m_sort_role);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setData(int role, const QVariant &value, bool assign_sort_role = false)
|
void setData(int role, const QVariant &value, bool assign_sort_role)
|
||||||
{
|
{
|
||||||
if (assign_sort_role)
|
if (assign_sort_role)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user