Fixes issues found during testing refs #568

* upper case in filters
* validation of distributor (made distributor mandatory)
* country change triggers filter
This commit is contained in:
Klaus Basan
2016-01-15 02:22:10 +01:00
parent eb74efa9ba
commit 9de1d91bb2
4 changed files with 21 additions and 6 deletions

View File

@@ -10,6 +10,7 @@
#include "dbcountryselectorcomponent.h"
#include "ui_dbcountryselectorcomponent.h"
#include "blackgui/guiutility.h"
#include "blackgui/uppercasevalidator.h"
#include <QMimeData>
using namespace BlackGui;
@@ -32,6 +33,8 @@ namespace BlackGui
connect(ui->le_CountryName, &QLineEdit::returnPressed, this, &CDbCountrySelectorComponent::ps_dataChanged);
connect(ui->le_CountryIso, &QLineEdit::editingFinished, this, &CDbCountrySelectorComponent::ps_dataChanged);
connect(ui->le_CountryName, &QLineEdit::returnPressed, this, &CDbCountrySelectorComponent::ps_dataChanged);
this->ui->le_CountryIso->setValidator(new CUpperCaseValidator(this));
}
CDbCountrySelectorComponent::~CDbCountrySelectorComponent()