mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:53:50 +00:00
minor fix
This commit is contained in:
parent
1b536d69f3
commit
14704e65a1
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
#include <QMimeData>
|
#include <QMimeData>
|
||||||
#include <QBitArray>
|
#include <QBitArray>
|
||||||
|
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
#include "pluginsmodel.hpp"
|
#include "pluginsmodel.hpp"
|
||||||
|
|
||||||
PluginsModel::PluginsModel(QObject *parent) : QStandardItemModel(parent)
|
PluginsModel::PluginsModel(QObject *parent) : QStandardItemModel(parent)
|
||||||
|
@ -53,8 +55,8 @@ bool PluginsModel::dropMimeData(const QMimeData *data, Qt::DropAction action,
|
||||||
|
|
||||||
//code based on QAbstractItemModel::decodeData
|
//code based on QAbstractItemModel::decodeData
|
||||||
// adapted to work with QStandardItem
|
// adapted to work with QStandardItem
|
||||||
int top = INT_MAX;
|
int top = std::numeric_limits<int>::max();
|
||||||
int left = INT_MAX;
|
int left = std::numeric_limits<int>::max();
|
||||||
int bottom = 0;
|
int bottom = 0;
|
||||||
int right = 0;
|
int right = 0;
|
||||||
QVector<int> rows, columns;
|
QVector<int> rows, columns;
|
||||||
|
|
Loading…
Reference in a new issue