Regexp validator

This commit is contained in:
Aditya Kulkarni
2018-11-22 08:31:35 -08:00
parent 0871eb38e6
commit 533dead402
4 changed files with 10 additions and 0 deletions

View File

@@ -1045,6 +1045,10 @@ void MainWindow::setupRecieveTab() {
}
});
// Validator for label
QRegExpValidator* v = new QRegExpValidator(QRegExp(Settings::labelRegExp), ui->rcvLabel);
ui->rcvLabel->setValidator(v);
// Select item in address list
QObject::connect(ui->listRecieveAddresses,
QOverload<int>::of(&QComboBox::currentIndexChanged), [=] (int index) {