forked from qt-creator/qt-creator
Utils: Remove "ok" and "error" colors accessors for FancyLineEdit
Change-Id: I4e6706f284182226da8c9815394f36e9764feab2 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -347,16 +347,6 @@ void PathChooser::setFileName(const FilePath &fn)
|
||||
d->m_lineEdit->setTextKeepingActiveCursor(fn.toUserOutput());
|
||||
}
|
||||
|
||||
void PathChooser::setErrorColor(const QColor &errorColor)
|
||||
{
|
||||
d->m_lineEdit->setErrorColor(errorColor);
|
||||
}
|
||||
|
||||
void PathChooser::setOkColor(const QColor &okColor)
|
||||
{
|
||||
d->m_lineEdit->setOkColor(okColor);
|
||||
}
|
||||
|
||||
bool PathChooser::isReadOnly() const
|
||||
{
|
||||
return d->m_lineEdit->isReadOnly();
|
||||
@@ -487,16 +477,6 @@ void PathChooser::setAboutToShowContextMenuHandler(PathChooser::AboutToShowConte
|
||||
s_aboutToShowContextMenuHandler = handler;
|
||||
}
|
||||
|
||||
QColor PathChooser::errorColor() const
|
||||
{
|
||||
return d->m_lineEdit->errorColor();
|
||||
}
|
||||
|
||||
QColor PathChooser::okColor() const
|
||||
{
|
||||
return d->m_lineEdit->okColor();
|
||||
}
|
||||
|
||||
FancyLineEdit::ValidationFunction PathChooser::defaultValidationFunction() const
|
||||
{
|
||||
return std::bind(&PathChooser::validatePath, this, std::placeholders::_1, std::placeholders::_2);
|
||||
|
||||
Reference in New Issue
Block a user