MCPcopy Create free account
hub / github.com/ckb-next/ckb-next / ModeListTableModel

Method ModeListTableModel

src/gui/modelisttablemodel.cpp:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <QStyledItemDelegate>
7
8ModeListTableModel::ModeListTableModel(Kb *dev, QObject* parent) : QAbstractTableModel(parent), device(dev),
9 highlightedRow(-1), _hasFocus(false)
10{
11 connect(device, &Kb::profileAboutToChange, this, &ModeListTableModel::profileAboutToChange);
12 connect(device, &Kb::profileChanged, this, &ModeListTableModel::profileChanged);
13}
14
15void ModeListTableModel::profileAboutToChange(){
16 KbProfile* currentProfile = device->currentProfile();

Callers

nothing calls this directly

Calls 1

connectFunction · 0.85

Tested by

no test coverage detected