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