summaryrefslogtreecommitdiffstats
path: root/ui/qt/widgets/drag_label.cpp
blob: 952e9262ce82e0666140abfca5a41c9989b85095 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* drag_label.cpp
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#include <ui/qt/widgets/drag_label.h>

#include <QLayout>

DragLabel::DragLabel(QString txt, QWidget * parent)
: QLabel(txt, parent)
{
    setAutoFillBackground(true);
    setFrameShape(QFrame::Panel);
    setFrameShadow(QFrame::Raised);
    setAttribute(Qt::WA_DeleteOnClose);
    setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);

    adjustSize();
}

DragLabel::~DragLabel() {
    // TODO Auto-generated destructor stub
}