1 /* drag_label.cpp 2 * 3 * Wireshark - Network traffic analyzer 4 * By Gerald Combs <gerald@wireshark.org> 5 * Copyright 1998 Gerald Combs 6 * 7 * SPDX-License-Identifier: GPL-2.0-or-later 8 */ 9 10 #include <ui/qt/widgets/drag_label.h> 11 12 #include <QLayout> 13 DragLabel(QString txt,QWidget * parent)14DragLabel::DragLabel(QString txt, QWidget * parent) 15 : QLabel(txt, parent) 16 { 17 setAutoFillBackground(true); 18 setFrameShape(QFrame::Panel); 19 setFrameShadow(QFrame::Raised); 20 setAttribute(Qt::WA_DeleteOnClose); 21 setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); 22 23 adjustSize(); 24 } 25 ~DragLabel()26DragLabel::~DragLabel() { 27 // TODO Auto-generated destructor stub 28 } 29