aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/dicealias.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2021-06-22 21:34:19 +0200
committerRenaud G <renaud@rolisteam.org>2022-04-13 15:40:42 +0200
commit70c279ab847883046ef0a951e4d2ccbf6170d19a (patch)
tree28bc40fdf84d2b5c3ff032de84ef6a55ef67ec01 /include/dicealias.h
parent2f67beb05264e0f74250852efb3133e074309f71 (diff)
downloadOneRoll-70c279ab847883046ef0a951e4d2ccbf6170d19a.tar.gz
OneRoll-70c279ab847883046ef0a951e4d2ccbf6170d19a.zip
rename some member in dicealias
Diffstat (limited to 'include/dicealias.h')
-rw-r--r--include/dicealias.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/dicealias.h b/include/dicealias.h
index 6825cdf..c390d21 100644
--- a/include/dicealias.h
+++ b/include/dicealias.h
@@ -41,7 +41,7 @@ public:
* @param key
* @param isReplace
*/
- DiceAlias(QString pattern, QString remplacement, bool isReplace= true, bool isEnable= true);
+ DiceAlias(QString pattern, QString command, QString comment= QString{}, bool isReplace= true, bool isEnable= true);
DiceAlias(const DiceAlias& alias);
/**
* @brief ~DiceAlias
@@ -57,12 +57,12 @@ public:
* @brief setCommand
* @param key
*/
- void setCommand(QString key);
+ void setPattern(const QString& pattern);
/**
* @brief setValue
* @param value
*/
- void setValue(QString value);
+ void setCommand(QString command);
/**
* @brief setType
*/
@@ -72,12 +72,12 @@ public:
* @brief getCommand
* @return
*/
- QString getCommand() const;
+ QString pattern() const;
/**
* @brief getValue
* @return
*/
- QString getValue() const;
+ QString command() const;
/**
* @brief isReplace
* @return
@@ -102,7 +102,7 @@ public:
* @brief getComment
* @return
*/
- QString getComment() const;
+ QString comment() const;
/**
* @brief setComment
* @param comment
@@ -110,8 +110,8 @@ public:
void setComment(const QString& comment);
private:
+ QString m_pattern;
QString m_command;
- QString m_value;
QString m_comment;
RESOLUTION_TYPE m_type;
bool m_isEnable;