diff options
| author | 2015-04-15 01:07:36 +0200 | |
|---|---|---|
| committer | 2015-04-15 01:07:36 +0200 | |
| commit | 64048b3fd2dba4220cb19946caf588f9a6f26093 (patch) | |
| tree | 7c2c51d0f91ba2d02307bba0f18abe5afa12f55d /diceparser.cpp | |
| parent | 5cfe48265ebad0ffa0a980dbc2d131fceeecdf3b (diff) | |
| download | OneRoll-64048b3fd2dba4220cb19946caf588f9a6f26093.tar.gz OneRoll-64048b3fd2dba4220cb19946caf588f9a6f26093.zip | |
add API to make easier the use of DiceParser.
Diffstat (limited to 'diceparser.cpp')
| -rw-r--r-- | diceparser.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/diceparser.cpp b/diceparser.cpp index 5e6d06f..6933071 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -136,6 +136,13 @@ QList<DiceAlias*>* DiceParser::getAliases() { return m_aliasList; } +void DiceParser::insertAlias(DiceAlias* dice, int i) +{ + if(i>m_aliasList->size()) + { + m_aliasList->insert(i, dice); + } +} bool DiceParser::parseLine(QString str) { |