forked from qt-creator/qt-creator
inline trivial functions
This commit is contained in:
@@ -48,131 +48,26 @@ ProBlock::~ProBlock()
|
||||
delete itm;
|
||||
}
|
||||
|
||||
void ProBlock::appendItem(ProItem *proitem)
|
||||
{
|
||||
m_proitems << proitem;
|
||||
}
|
||||
|
||||
QList<ProItem *> ProBlock::items() const
|
||||
{
|
||||
return m_proitems;
|
||||
}
|
||||
|
||||
void ProBlock::setBlockKind(int blockKind)
|
||||
{
|
||||
m_blockKind = blockKind;
|
||||
}
|
||||
|
||||
int ProBlock::blockKind() const
|
||||
{
|
||||
return m_blockKind;
|
||||
}
|
||||
|
||||
ProItem::ProItemKind ProBlock::kind() const
|
||||
{
|
||||
return ProItem::BlockKind;
|
||||
}
|
||||
|
||||
// --------------- ProVariable ----------------
|
||||
ProVariable::ProVariable(const QString &name)
|
||||
{
|
||||
m_variable = name;
|
||||
m_variableKind = SetOperator;
|
||||
}
|
||||
|
||||
void ProVariable::setVariableOperator(VariableOperator variableKind)
|
||||
{
|
||||
m_variableKind = variableKind;
|
||||
}
|
||||
|
||||
ProVariable::VariableOperator ProVariable::variableOperator() const
|
||||
{
|
||||
return m_variableKind;
|
||||
}
|
||||
|
||||
void ProVariable::setVariable(const QString &name)
|
||||
{
|
||||
m_variable = name;
|
||||
}
|
||||
|
||||
QString ProVariable::variable() const
|
||||
{
|
||||
return m_variable;
|
||||
}
|
||||
|
||||
void ProVariable::setValue(const QString &val)
|
||||
{
|
||||
m_value = val;
|
||||
}
|
||||
|
||||
QString ProVariable::value() const
|
||||
{
|
||||
return m_value;
|
||||
}
|
||||
|
||||
ProItem::ProItemKind ProVariable::kind() const
|
||||
{
|
||||
return ProItem::VariableKind;
|
||||
}
|
||||
|
||||
// --------------- ProFunction ----------------
|
||||
ProFunction::ProFunction(const QString &text)
|
||||
{
|
||||
m_text = text;
|
||||
}
|
||||
|
||||
void ProFunction::setText(const QString &text)
|
||||
{
|
||||
m_text = text;
|
||||
}
|
||||
|
||||
QString ProFunction::text() const
|
||||
{
|
||||
return m_text;
|
||||
}
|
||||
|
||||
ProItem::ProItemKind ProFunction::kind() const
|
||||
{
|
||||
return ProItem::FunctionKind;
|
||||
}
|
||||
|
||||
// --------------- ProCondition ----------------
|
||||
ProCondition::ProCondition(const QString &text)
|
||||
{
|
||||
m_text = text;
|
||||
}
|
||||
|
||||
void ProCondition::setText(const QString &text)
|
||||
{
|
||||
m_text = text;
|
||||
}
|
||||
|
||||
QString ProCondition::text() const
|
||||
{
|
||||
return m_text;
|
||||
}
|
||||
|
||||
ProItem::ProItemKind ProCondition::kind() const
|
||||
{
|
||||
return ProItem::ConditionKind;
|
||||
}
|
||||
|
||||
// --------------- ProOperator ----------------
|
||||
ProOperator::ProOperator(OperatorKind operatorKind)
|
||||
{
|
||||
m_operatorKind = operatorKind;
|
||||
}
|
||||
|
||||
void ProOperator::setOperatorKind(OperatorKind operatorKind)
|
||||
{
|
||||
m_operatorKind = operatorKind;
|
||||
}
|
||||
|
||||
ProOperator::OperatorKind ProOperator::operatorKind() const
|
||||
{
|
||||
return m_operatorKind;
|
||||
}
|
||||
|
||||
ProItem::ProItemKind ProOperator::kind() const
|
||||
{
|
||||
return ProItem::OperatorKind;
|
||||
@@ -192,19 +87,4 @@ ProFile::ProFile(const QString &fileName)
|
||||
m_directoryName = QString::fromRawData(fileName.constData(), nameOff);
|
||||
}
|
||||
|
||||
QString ProFile::displayFileName() const
|
||||
{
|
||||
return m_displayFileName;
|
||||
}
|
||||
|
||||
QString ProFile::fileName() const
|
||||
{
|
||||
return m_fileName;
|
||||
}
|
||||
|
||||
QString ProFile::directoryName() const
|
||||
{
|
||||
return m_directoryName;
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user