mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-26 09:21:21 -05:00
fix camel case
This commit is contained in:
parent
19d1fa8e7d
commit
0c755846fe
@ -29,7 +29,7 @@ PassphraseGenerator::PassphraseGenerator()
|
|||||||
, m_separator(' ')
|
, m_separator(' ')
|
||||||
{
|
{
|
||||||
const QString path = filePath()->dataPath("wordlists/eff_large.wordlist");
|
const QString path = filePath()->dataPath("wordlists/eff_large.wordlist");
|
||||||
setWordlist(path);
|
setWordList(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
double PassphraseGenerator::calculateEntropy(QString passphrase)
|
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();
|
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;
|
m_separator = separator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ public:
|
|||||||
|
|
||||||
double calculateEntropy(QString passphrase);
|
double calculateEntropy(QString passphrase);
|
||||||
void setWordCount(int wordCount);
|
void setWordCount(int wordCount);
|
||||||
void setWordlist(QString path);
|
void setWordList(QString path);
|
||||||
void setWordseparator(QString separator);
|
void setWordSeparator(QString separator);
|
||||||
bool isValid() const;
|
bool isValid() const;
|
||||||
|
|
||||||
QString generatePassphrase() const;
|
QString generatePassphrase() const;
|
||||||
|
@ -363,9 +363,9 @@ void PasswordGeneratorWidget::updateGenerator()
|
|||||||
m_dicewareGenerator->setWordCount(m_ui->spinBoxWordCount->value());
|
m_dicewareGenerator->setWordCount(m_ui->spinBoxWordCount->value());
|
||||||
if (!m_ui->comboBoxWordList->currentText().isEmpty()) {
|
if (!m_ui->comboBoxWordList->currentText().isEmpty()) {
|
||||||
QString path = filePath()->dataPath("wordlists/" + m_ui->comboBoxWordList->currentText());
|
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()) {
|
if (m_dicewareGenerator->isValid()) {
|
||||||
m_ui->buttonGenerate->setEnabled(true);
|
m_ui->buttonGenerate->setEnabled(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user