1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Merge remote-tracking branch 'upstream/newlauncher' into newlauncher

This commit is contained in:
Pieter van der Kloet 2011-07-31 19:51:27 +02:00
commit b51ab69ab7

View File

@ -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;
@ -144,4 +146,4 @@ bool PluginsModel::dropMimeData(const QMimeData *data, Qt::DropAction action,
emit indexesDropped(newIndexes); emit indexesDropped(newIndexes);
return true; return true;
} }