| 6 | #include "FrmScroll.h" |
| 7 | |
| 8 | static Q_LOGGING_CATEGORY(log, "Client.FrmScroll") |
| 9 | CFrmScroll::CFrmScroll(CFrmViewer *pView, QWidget *parent) : QScrollArea(parent) |
| 10 | { |
| 11 | qDebug(log) << Q_FUNC_INFO; |
| 12 | //setFocusPolicy(Qt::NoFocus); |
| 13 | if(pView) |
| 14 | { |
| 15 | setWidget(pView); |
| 16 | pView->show(); |
| 17 | bool check = connect(pView, |
| 18 | SIGNAL(sigMouseMoveEvent(QMouseEvent*)), |
| 19 | this, |
| 20 | SLOT(slotMouseMoveEvent(QMouseEvent*))); |
| 21 | Q_ASSERT(check); |
| 22 | } |
| 23 | setAlignment(Qt::AlignCenter); |
| 24 | //setBackgroundRole(QPalette::Dark); |
| 25 | setWidgetResizable(false); |
| 26 | slotSetAdaptWindows(GetViewer()->GetAdaptWindows()); |
| 27 | } |
| 28 | |
| 29 | CFrmScroll::~CFrmScroll() |
| 30 | { |
nothing calls this directly
no test coverage detected