20 return checkRow(sourceRow, sourceParent, 0, 2);
26 switch (source_left.
column())
34 if (color_left.
hsvHue() != color_right.hsvHue())
35 return color_left.
hsvHue() < color_right.hsvHue();
36 if (color_left.
hsvSaturation() != color_right.hsvSaturation())
37 return color_left.
hsvSaturation() < color_right.hsvSaturation();
38 return color_left.
value() < color_right.value();
46 name_left = name_left.
toLower();
47 name_right = name_right.
toLower();
58 return mSortMechanism;
void setSortMechanism(gui_utility::mSortMechanism sortMechanism)
void startSearch(QString text, int options) override
gui_utility::mSortMechanism sortMechanism()
GroupingProxyModel(QObject *parent=nullptr)
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override
bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const override
SearchOptions mSearchOptions
bool checkRow(int sourceRow, const QModelIndex &sourceParent, int startIndex, int endIndex, int offset=0) const
Should be called inside filterAcceptsRow function and returns true if the source_row,...
int compare(mSortMechanism mechanism, QString a, QString b)
int hsvSaturation() const const
QVariant data(int role) const const
QString toLower() const const
int toInt(bool *ok) const const
QString toString() const const