Changeset View
Changeset View
Standalone View
Standalone View
libscience/psetables.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 50 | for (int i = 0; i < m_tables.count(); ++i) { | |||
---|---|---|---|---|---|
51 | l << m_tables.at(i)->description(); | 51 | l << m_tables.at(i)->description(); | ||
52 | } | 52 | } | ||
53 | return l; | 53 | return l; | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | pseTable* pseTables::getTabletype(const int tableType) | 56 | pseTable* pseTables::getTabletype(const int tableType) | ||
57 | { | 57 | { | ||
58 | if ((tableType < 0) || (tableType >= m_tables.count())) { | 58 | if ((tableType < 0) || (tableType >= m_tables.count())) { | ||
59 | return 0; | 59 | return nullptr; | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | return m_tables.at(tableType); | 62 | return m_tables.at(tableType); | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | pseTable* pseTables::getTabletype(const QString tableName) | 65 | pseTable* pseTables::getTabletype(const QString tableName) | ||
66 | { | 66 | { | ||
67 | for (int i = 0; m_tables.count(); ++i) { | 67 | for (int i = 0; m_tables.count(); ++i) { | ||
68 | if (tableName == m_tables.at(i)->name()) { | 68 | if (tableName == m_tables.at(i)->name()) { | ||
69 | return m_tables.at(i); | 69 | return m_tables.at(i); | ||
70 | } | 70 | } | ||
71 | } | 71 | } | ||
72 | return 0; | 72 | return nullptr; | ||
73 | } | 73 | } | ||
74 | 74 | | |||
75 | pseTable::pseTable() | 75 | pseTable::pseTable() | ||
76 | { | 76 | { | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | pseTable::~pseTable() | 79 | pseTable::~pseTable() | ||
80 | { | 80 | { | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | pseTable *pseTable::init() | 83 | pseTable *pseTable::init() | ||
84 | { | 84 | { | ||
85 | return 0; | 85 | return nullptr; | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | QString pseTable::name() const | 88 | QString pseTable::name() const | ||
89 | { | 89 | { | ||
90 | return m_name; | 90 | return m_name; | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | QString pseTable::description() const | 93 | QString pseTable::description() const | ||
▲ Show 20 Lines • Show All 321 Lines • Show Last 20 Lines |