qBittorrent
TagLessThan Class Reference

#include <tagset.h>

Collaboration diagram for TagLessThan:

Public Member Functions

bool operator() (const QString &left, const QString &right) const
 

Private Attributes

Utils::Compare::NaturalCompare< Qt::CaseInsensitive > m_compare
 
Utils::Compare::NaturalCompare< Qt::CaseSensitive > m_subCompare
 

Detailed Description

Definition at line 37 of file tagset.h.

Member Function Documentation

◆ operator()()

bool TagLessThan::operator() ( const QString &  left,
const QString &  right 
) const

Definition at line 31 of file tagset.cpp.

32 {
33  const int result = m_compare(left, right);
34  if (result != 0)
35  return (result < 0);
36  return (m_subCompare(left, right) < 0);
37 }
Utils::Compare::NaturalCompare< Qt::CaseSensitive > m_subCompare
Definition: tagset.h:44
Utils::Compare::NaturalCompare< Qt::CaseInsensitive > m_compare
Definition: tagset.h:43

References m_compare, and m_subCompare.

Member Data Documentation

◆ m_compare

Utils::Compare::NaturalCompare<Qt::CaseInsensitive> TagLessThan::m_compare
private

Definition at line 43 of file tagset.h.

Referenced by operator()().

◆ m_subCompare

Utils::Compare::NaturalCompare<Qt::CaseSensitive> TagLessThan::m_subCompare
private

Definition at line 44 of file tagset.h.

Referenced by operator()().


The documentation for this class was generated from the following files: