blob: e3571f158aa501272a7095a19ae437832bc341ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "calloutview.h"
#include "calloutwidget.h"
CalloutWidget::CalloutWidget(QWidget *parent)
: ContentWidget(parent)
{
// To make mouse tracking work, we need to subclass the QGraphicsView instead of just having
// it as member of this class
m_view = new CalloutView(this);
m_view->resize(size());
}
void CalloutWidget::resizeEvent(QResizeEvent *)
{
m_view->resize(size());
}
|