Fix some warnings

parent 0a93ade4
......@@ -64,8 +64,6 @@ public slots:
signals:
/** @brief Emitted whenever a different color was chosen. */
void modified(QColor = QColor());
void disableCurrentFilter(bool);
};
#endif
......@@ -73,12 +73,15 @@ private:
{
int column = treeWidget()->sortColumn();
switch (column) {
case 0:
return text(column).toLower() < other.text(column).toLower();
break;
default:
return data(column, Qt::UserRole) < other.data(column, Qt::UserRole);
break;
case 1:
return data(column, Qt::UserRole).toULongLong() < other.data(column, Qt::UserRole).toULongLong();
break;
case 2:
return data(column, Qt::UserRole).toDateTime() < other.data(column, Qt::UserRole).toDateTime();
break;
default:
return text(column).toLower() < other.text(column).toLower();
break;
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment