Mantid
Loading...
Searching...
No Matches
LineEditWithClear.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** Copyright (c) 2007 Trolltech ASA <info@trolltech.com>
4**
5** Use, modification and distribution is allowed without limitation,
6** warranty, liability or support of any kind.
7**
8****************************************************************************/
9
10#pragma once
11
12#include "MantidQtWidgets/Common/DllOption.h"
13#include <QLineEdit>
14
15class QToolButton;
16
17namespace MantidQt {
18namespace MantidWidgets {
19
20class EXPORT_OPT_MANTIDQT_COMMON LineEditWithClear : public QLineEdit {
21 Q_OBJECT
22
23public:
24 LineEditWithClear(QWidget *parent = nullptr);
25
26protected:
27 void resizeEvent(QResizeEvent * /*unused*/) override;
28
29private slots:
30 void updateCloseButton(const QString &text);
31
32private:
33 QToolButton *clearButton;
34};
35} // namespace MantidWidgets
36} // namespace MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...