MCPcopy Create free account
hub / github.com/YACReader/yacreader / resizeEvent

Method resizeEvent

custom_widgets/yacreader_search_line_edit.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void YACReaderSearchLineEdit::resizeEvent(QResizeEvent *)
63{
64 QSize sz = clearButton->sizeHint();
65 int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
66 int marginRight = style()->pixelMetric(QStyle::PM_LayoutRightMargin);
67 clearButton->move(rect().right() - frameWidth - sz.width() - marginRight - 6,
68 (rect().bottom() + 2 - sz.height()) / 2);
69
70 QSize szl = searchLabel->sizeHint();
71 searchLabel->move(8, (rect().bottom() + 2 - szl.height()) / 2);
72}
73
74void YACReaderSearchLineEdit::updateCloseButton(const QString &text)
75{

Callers

nothing calls this directly

Calls 2

rightMethod · 0.80
sizeHintMethod · 0.45

Tested by

no test coverage detected