| 60 | } |
| 61 | |
| 62 | void 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 | |
| 74 | void YACReaderSearchLineEdit::updateCloseButton(const QString &text) |
| 75 | { |