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 "DllOption.h"
13#include "MantidKernel/System.h"
14#include <QLineEdit>
15
16class QToolButton;
17
18namespace MantidQt {
19namespace MantidWidgets {
20
22 Q_OBJECT
23
24public:
25 LineEditWithClear(QWidget *parent = nullptr);
26
27protected:
28 void resizeEvent(QResizeEvent * /*unused*/) override;
29
30private slots:
31 void updateCloseButton(const QString &text);
32
33private:
34 QToolButton *clearButton;
35};
36} // namespace MantidWidgets
37} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...