forked from qt-creator/qt-creator
Utils: Use Theme default "ok" and "error" colors for FancyLineEdit
...and remove the redundant setter calls elsewhere. Change-Id: Iec71fe1bff7f8c9dd72bf3c3e643a4ed01e4dc80 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -72,8 +72,6 @@ GerritDialog::GerritDialog(const QSharedPointer<GerritParameters> &p,
|
||||
auto completer = new QCompleter(this);
|
||||
completer->setModel(m_queryModel);
|
||||
m_ui->queryLineEdit->setSpecialCompleter(completer);
|
||||
m_ui->queryLineEdit->setOkColor(Utils::creatorTheme()->color(Utils::Theme::TextColorNormal));
|
||||
m_ui->queryLineEdit->setErrorColor(Utils::creatorTheme()->color(Utils::Theme::TextColorError));
|
||||
m_ui->queryLineEdit->setValidationFunction([this](Utils::FancyLineEdit *, QString *) {
|
||||
return m_model->state() != GerritModel::Error;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user