fix camel case

This commit is contained in:
thez3ro 2017-03-22 00:04:36 +01:00
parent 19d1fa8e7d
commit 0c755846fe
No known key found for this signature in database
GPG Key ID: F628F9E41DD7C073
3 changed files with 7 additions and 7 deletions

View File

@ -29,7 +29,7 @@ PassphraseGenerator::PassphraseGenerator()
, m_separator(' ')
{
const QString path = filePath()->dataPath("wordlists/eff_large.wordlist");
setWordlist(path);
setWordList(path);
}
double PassphraseGenerator::calculateEntropy(QString passphrase)
@ -54,7 +54,7 @@ void PassphraseGenerator::setWordCount(int wordCount)
}
void PassphraseGenerator::setWordlist(QString path)
void PassphraseGenerator::setWordList(QString path)
{
m_wordlist.clear();
@ -75,7 +75,7 @@ void PassphraseGenerator::setWordlist(QString path)
}
}
void PassphraseGenerator::setWordseparator(QString separator) {
void PassphraseGenerator::setWordSeparator(QString separator) {
m_separator = separator;
}

View File

@ -29,8 +29,8 @@ public:
double calculateEntropy(QString passphrase);
void setWordCount(int wordCount);
void setWordlist(QString path);
void setWordseparator(QString separator);
void setWordList(QString path);
void setWordSeparator(QString separator);
bool isValid() const;
QString generatePassphrase() const;

View File

@ -363,9 +363,9 @@ void PasswordGeneratorWidget::updateGenerator()
m_dicewareGenerator->setWordCount(m_ui->spinBoxWordCount->value());
if (!m_ui->comboBoxWordList->currentText().isEmpty()) {
QString path = filePath()->dataPath("wordlists/" + m_ui->comboBoxWordList->currentText());
m_dicewareGenerator->setWordlist(path);
m_dicewareGenerator->setWordList(path);
}
m_dicewareGenerator->setWordseparator(m_ui->editWordSeparator->text());
m_dicewareGenerator->setWordSeparator(m_ui->editWordSeparator->text());
if (m_dicewareGenerator->isValid()) {
m_ui->buttonGenerate->setEnabled(true);