forked from osmocom/wireshark
Qt: remove CaptureFile from CredentialsModel constructor.
Unused: [55/83] Building CXX object ui/qt/CMakeFiles/qtui.dir/models/credentials_model.cpp.o /Users/stig/Development/wireshark/ui/qt/models/credentials_model.cpp:18:66: warning: unused parameter 'cf' [-Wunused-parameter] CredentialsModel::CredentialsModel(QObject *parent, CaptureFile& cf) ^ 1 warning generated. Change-Id: I8f89a8121c55bae3fdc5d317beb5a87e0135f02a Reviewed-on: https://code.wireshark.org/review/33841 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
This commit is contained in:
parent
ca4b950bfa
commit
e891f57bb3
|
@ -53,7 +53,7 @@ CredentialsDialog::CredentialsDialog(QWidget &parent, CaptureFile &cf, PacketLis
|
|||
ui->setupUi(this);
|
||||
packet_list_ = packet_list;
|
||||
|
||||
model_ = new CredentialsModel(this, cf);
|
||||
model_ = new CredentialsModel(this);
|
||||
QSortFilterProxyModel *proxyModel = new QSortFilterProxyModel(this);
|
||||
|
||||
proxyModel->setSourceModel(model_);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <file.h>
|
||||
#include <log.h>
|
||||
|
||||
CredentialsModel::CredentialsModel(QObject *parent, CaptureFile& cf)
|
||||
CredentialsModel::CredentialsModel(QObject *parent)
|
||||
:QAbstractListModel(parent)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ class CredentialsModel : public QAbstractListModel
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CredentialsModel(QObject *parent, CaptureFile& cf);
|
||||
CredentialsModel(QObject *parent);
|
||||
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const ;
|
||||
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
||||
|
|
Loading…
Reference in New Issue