Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
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
15
class
QToolButton;
16
17
namespace
MantidQt
{
18
namespace
MantidWidgets {
19
20
class
EXPORT_OPT_MANTIDQT_COMMON
LineEditWithClear
:
public
QLineEdit {
21
Q_OBJECT
22
23
public
:
24
LineEditWithClear
(QWidget *parent =
nullptr
);
25
26
protected
:
27
void
resizeEvent(QResizeEvent *
/*unused*/
)
override
;
28
29
private
slots:
30
void
updateCloseButton(
const
QString &text);
31
32
private
:
33
QToolButton *
clearButton
;
34
};
35
}
// namespace MantidWidgets
36
}
// namespace MantidQt
MantidQt::MantidWidgets::LineEditWithClear
Definition
LineEditWithClear.h:20
MantidQt::MantidWidgets::LineEditWithClear::clearButton
QToolButton * clearButton
Definition
LineEditWithClear.h:33
MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Definition
AddWorkspaceDialog.h:18
Generated by
1.9.8