1 | #include "FakeCloseButton.h" |
---|---|
2 | |
3 | FakeCloseButton::FakeCloseButton(QWidget *parent) |
4 | : QAbstractButton(parent) |
5 | { |
6 | setFocusPolicy(Qt::NoFocus); |
7 | #ifndef QT_NO_CURSOR |
8 | setCursor(Qt::ArrowCursor); |
9 | #endif |
10 | #ifndef QT_NO_TOOLTIP |
11 | setToolTip(tr("Close Tab")); |
12 | #endif |
13 | resize(sizeHint()); |
14 | } |
15 |