mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
Fix overloaded virtual warning
This commit is contained in:
parent
4838f72e50
commit
167159698d
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,8 @@ private:
|
|||
int m_sort_role = Qt::DisplayRole;
|
||||
|
||||
public:
|
||||
using QTableWidgetItem::setData;
|
||||
|
||||
custom_table_widget_item(){}
|
||||
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
|
||||
|
@ -31,7 +33,7 @@ public:
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue