Skip to content

Commit

Permalink
Or maybe not
Browse files Browse the repository at this point in the history
  • Loading branch information
TheForce172 committed May 27, 2024
1 parent 2e9ab12 commit acd36dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions qtfred/src/ui/dialogs/ShipEditor/BankModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,11 @@ class BankTreeModel : public QAbstractItemModel {
Qt::ItemFlags flags(const QModelIndex& index) const override;

QStringList mimeTypes() const override;
bool
canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const;
bool canDropMimeData(const QMimeData* data,
Qt::DropAction action,
int row,
int column,
const QModelIndex& parent) const override;
bool
dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) override;
void setWeapon(const QModelIndex& index, int data) const;
Expand Down
2 changes: 1 addition & 1 deletion qtfred/src/ui/widgets/weaponList.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class WeaponModel : public QAbstractListModel {
~WeaponModel();
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
QMimeData* mimeData(const QModelIndexList& indexes) const;
QMimeData* mimeData(const QModelIndexList& indexes) const override;
QVector<WeaponItem*> weapons;
};
class weaponList : public QListView {
Expand Down

0 comments on commit acd36dd

Please sign in to comment.