1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 17:45:35 +00:00

minor fix

This commit is contained in:
Marc Zinnschlag 2011-07-31 10:42:42 +02:00
parent 1b536d69f3
commit 14704e65a1

View file

@ -1,6 +1,8 @@
#include <QMimeData>
#include <QBitArray>
#include <limits>
#include "pluginsmodel.hpp"
PluginsModel::PluginsModel(QObject *parent) : QStandardItemModel(parent)
@ -53,8 +55,8 @@ bool PluginsModel::dropMimeData(const QMimeData *data, Qt::DropAction action,
//code based on QAbstractItemModel::decodeData
// adapted to work with QStandardItem
int top = INT_MAX;
int left = INT_MAX;
int top = std::numeric_limits<int>::max();
int left = std::numeric_limits<int>::max();
int bottom = 0;
int right = 0;
QVector<int> rows, columns;
@ -144,4 +146,4 @@ bool PluginsModel::dropMimeData(const QMimeData *data, Qt::DropAction action,
emit indexesDropped(newIndexes);
return true;
}
}