diff options
Diffstat (limited to '')
-rw-r--r-- | ui/qt/widgets/drag_label.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ui/qt/widgets/drag_label.cpp b/ui/qt/widgets/drag_label.cpp new file mode 100644 index 00000000..952e9262 --- /dev/null +++ b/ui/qt/widgets/drag_label.cpp @@ -0,0 +1,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 +} |