20#ifndef LIBREPCB_EDITOR_APIENDPOINTLISTMODELLEGACY_H
21#define LIBREPCB_EDITOR_APIENDPOINTLISTMODELLEGACY_H
69 void add(
const QPersistentModelIndex& itemIndex)
noexcept;
70 void remove(
const QPersistentModelIndex& itemIndex)
noexcept;
71 void moveUp(
const QPersistentModelIndex& itemIndex)
noexcept;
72 void moveDown(
const QPersistentModelIndex& itemIndex)
noexcept;
75 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
76 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
77 QVariant
data(
const QModelIndex& index,
78 int role = Qt::DisplayRole)
const override;
79 QVariant
headerData(
int section, Qt::Orientation orientation,
80 int role = Qt::DisplayRole)
const override;
81 Qt::ItemFlags
flags(
const QModelIndex& index)
const override;
82 bool setData(
const QModelIndex& itemIndex,
const QVariant& value,
83 int role = Qt::EditRole)
override;
90 QList<WorkspaceSettings::ApiEndpoint>
mValues;
Access to a LibrePCB API endpoint.
Definition apiendpoint.h:45
Container for all workspace related settings.
Definition workspacesettings.h:60
The ApiEndpointListModelLegacy class.
Definition apiendpointlistmodellegacy.h:43
const QList< WorkspaceSettings::ApiEndpoint > & getValues() const noexcept
Definition apiendpointlistmodellegacy.h:64
QUrl mNewUrl
Definition apiendpointlistmodellegacy.h:91
bool setData(const QModelIndex &itemIndex, const QVariant &value, int role=Qt::EditRole) override
Definition apiendpointlistmodellegacy.cpp:265
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Definition apiendpointlistmodellegacy.cpp:222
ApiEndpointListModelLegacy & operator=(const ApiEndpointListModelLegacy &rhs) noexcept
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition apiendpointlistmodellegacy.cpp:125
ApiEndpointListModelLegacy(const ApiEndpointListModelLegacy &other)=delete
void moveDown(const QPersistentModelIndex &itemIndex) noexcept
Definition apiendpointlistmodellegacy.cpp:112
Qt::ItemFlags flags(const QModelIndex &index) const override
Definition apiendpointlistmodellegacy.cpp:251
QList< WorkspaceSettings::ApiEndpoint > mValues
Definition apiendpointlistmodellegacy.h:90
void add(const QPersistentModelIndex &itemIndex) noexcept
Definition apiendpointlistmodellegacy.cpp:60
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Definition apiendpointlistmodellegacy.cpp:139
void moveUp(const QPersistentModelIndex &itemIndex) noexcept
Definition apiendpointlistmodellegacy.cpp:103
void remove(const QPersistentModelIndex &itemIndex) noexcept
Definition apiendpointlistmodellegacy.cpp:93
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Definition apiendpointlistmodellegacy.cpp:132
Column
Definition apiendpointlistmodellegacy.h:47
@ _COLUMN_COUNT
Definition apiendpointlistmodellegacy.h:53
@ COLUMN_URL
Definition apiendpointlistmodellegacy.h:48
@ COLUMN_PARTS
Definition apiendpointlistmodellegacy.h:50
@ COLUMN_ORDER
Definition apiendpointlistmodellegacy.h:51
@ COLUMN_LIBRARIES
Definition apiendpointlistmodellegacy.h:49
@ COLUMN_ACTIONS
Definition apiendpointlistmodellegacy.h:52
void setValues(const QList< WorkspaceSettings::ApiEndpoint > &values) noexcept
Definition apiendpointlistmodellegacy.cpp:49
Definition occmodel.cpp:77