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:
@@ -56,8 +56,6 @@ class QTCREATOR_UTILS_EXPORT PathChooser : public QWidget
|
||||
Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly DESIGNABLE true)
|
||||
// Designer does not know this type, so force designable to false:
|
||||
Q_PROPERTY(Utils::FilePath fileName READ fileName WRITE setFileName DESIGNABLE false)
|
||||
Q_PROPERTY(QColor errorColor READ errorColor WRITE setErrorColor DESIGNABLE true)
|
||||
Q_PROPERTY(QColor okColor READ okColor WRITE setOkColor DESIGNABLE true)
|
||||
|
||||
public:
|
||||
static QString browseButtonLabel();
|
||||
@@ -147,9 +145,6 @@ public:
|
||||
using AboutToShowContextMenuHandler = std::function<void (PathChooser *, QMenu *)>;
|
||||
static void setAboutToShowContextMenuHandler(AboutToShowContextMenuHandler handler);
|
||||
|
||||
QColor errorColor() const;
|
||||
QColor okColor() const;
|
||||
|
||||
private:
|
||||
bool validatePath(FancyLineEdit *edit, QString *errorMessage) const;
|
||||
// Returns overridden title or the one from <title>
|
||||
@@ -170,9 +165,6 @@ public slots:
|
||||
void setPath(const QString &);
|
||||
void setFileName(const FilePath &);
|
||||
|
||||
void setErrorColor(const QColor &errorColor);
|
||||
void setOkColor(const QColor &okColor);
|
||||
|
||||
private:
|
||||
PathChooserPrivate *d = nullptr;
|
||||
static AboutToShowContextMenuHandler s_aboutToShowContextMenuHandler;
|
||||
|
||||
Reference in New Issue
Block a user