Qt 4.8
Functions
qstringlistmodel.cpp File Reference
#include "qstringlistmodel.h"

Go to the source code of this file.

Functions

static bool ascendingLessThan (const QPair< QString, int > &s1, const QPair< QString, int > &s2)
 
static bool decendingLessThan (const QPair< QString, int > &s1, const QPair< QString, int > &s2)
 

Function Documentation

◆ ascendingLessThan()

static bool ascendingLessThan ( const QPair< QString, int > &  s1,
const QPair< QString, int > &  s2 
)
static

Definition at line 238 of file qstringlistmodel.cpp.

Referenced by QStringListModel::sort().

239 {
240  return s1.first < s2.first;
241 }
T1 first
Definition: qpair.h:65

◆ decendingLessThan()

static bool decendingLessThan ( const QPair< QString, int > &  s1,
const QPair< QString, int > &  s2 
)
static

Definition at line 243 of file qstringlistmodel.cpp.

Referenced by QStringListModel::sort().

244 {
245  return s1.first > s2.first;
246 }
T1 first
Definition: qpair.h:65