From 14704e65a1eca7052b1161b27203b024c22f3c3a Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sun, 31 Jul 2011 10:42:42 +0200 Subject: [PATCH] minor fix --- apps/launcher/pluginsmodel.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/launcher/pluginsmodel.cpp b/apps/launcher/pluginsmodel.cpp index 5ad8111b1..86bd53027 100644 --- a/apps/launcher/pluginsmodel.cpp +++ b/apps/launcher/pluginsmodel.cpp @@ -1,6 +1,8 @@ #include #include +#include + #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::max(); + int left = std::numeric_limits::max(); int bottom = 0; int right = 0; QVector rows, columns; @@ -144,4 +146,4 @@ bool PluginsModel::dropMimeData(const QMimeData *data, Qt::DropAction action, emit indexesDropped(newIndexes); return true; -} \ No newline at end of file +}