#include <lineedit.h>
Definition at line 16 of file lineedit.h.
◆ LineEdit()
LineEdit::LineEdit |
( |
QWidget * |
parent | ) |
|
Definition at line 21 of file lineedit.cpp.
27 m_searchButton->setStyleSheet(
"QToolButton {border: none; padding: 2px;}");
30 setStyleSheet(QString::fromLatin1(
"QLineEdit {padding-left: %1px;}").arg(
m_searchButton->sizeHint().width()));
32 setClearButtonEnabled(
true);
34 const int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
35 setMaximumHeight(std::max(sizeHint().height(),
m_searchButton->sizeHint().height()) + frameWidth * 2);
36 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
QToolButton * m_searchButton
static UIThemeManager * instance()
References UIThemeManager::instance(), and m_searchButton.
◆ keyPressEvent()
void LineEdit::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
Definition at line 48 of file lineedit.cpp.
50 if ((event->modifiers() == Qt::NoModifier) && (event->key() == Qt::Key_Escape))
54 QLineEdit::keyPressEvent(event);
◆ resizeEvent()
void LineEdit::resizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
overrideprotected |
Definition at line 39 of file lineedit.cpp.
41 const int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
42 const int xPos = QGuiApplication::isLeftToRight()
44 : (
e->size().width() -
m_searchButton->sizeHint().width() - frameWidth);
References nova3.nova2dl::e, and m_searchButton.
◆ m_searchButton
QToolButton* LineEdit::m_searchButton |
|
private |
The documentation for this class was generated from the following files: