(986a3bf)
Go to the source code of this file.
|
static bool | modeSorter (const std::string &mode1, const std::string &mode2) |
|
◆ modeSorter()
static bool modeSorter |
( |
const std::string & |
mode1, |
|
|
const std::string & |
mode2 |
|
) |
| |
|
static |
Definition at line 36 of file modelistmodel.cpp.
38 const int width1 = atoi(mode1.substr(0, mode1.find(
'x')).c_str());
39 const int height1 = atoi(mode1.substr(mode1.find(
'x') + 1).c_str());
40 if ((width1 == 0) || (height1 == 0))
43 const int width2 = atoi(mode2.substr(0, mode2.find(
'x')).c_str());
44 const int height2 = atoi(mode2.substr(mode2.find(
'x') + 1).c_str());
45 if ((width2 == 0) || (height2 == 0))
48 return width1 < width2;
50 if (height1 != height2)
51 return height1 < height2;
Referenced by ModeListModel::ModeListModel().