summaryrefslogtreecommitdiffstats
path: root/ui/qt/follow_stream_action.cpp
blob: 0be2d56175369a7b3123b193d8d15d6115349759 (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
/* follow_stream_action.cpp
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#include <config.h>

#include <epan/packet_info.h>
#include <epan/proto_data.h>
#include <epan/packet.h>
#include "follow_stream_action.h"

#include <QMenu>

#include <ui/qt/utils/qt_ui_utils.h>

FollowStreamAction::FollowStreamAction(QObject *parent, register_follow_t *follow) :
    QAction(parent),
    follow_(follow)
{
    if (follow_) {
          setText(QString(tr("%1 Stream").arg(proto_get_protocol_short_name(find_protocol_by_id(get_follow_proto_id(follow))))));
    }
}