1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

Fix 64 bit compile

This commit is contained in:
David Ankers 2012-01-30 04:51:11 +11:00
parent e1d471dc63
commit 6c030482a5

View File

@ -209,7 +209,7 @@ bool NotifyTableModel::dropMimeData( const QMimeData * data, Qt::DropAction acti
int rows = beginRow;
// read next item from input MIME and drop into the table line by line
while(!stream.atEnd()) {
qint32 ptr;
quintptr ptr;
stream >> ptr;
NotificationItem* item = reinterpret_cast<NotificationItem*>(ptr);
int dragged = _list.indexOf(item);
@ -247,7 +247,7 @@ QMimeData* NotifyTableModel::mimeData(const QModelIndexList& indexes) const
int rows = 0;
foreach (const QModelIndex& index, indexes) {
if (!index.column()) {
qint32 item = reinterpret_cast<qint32>(_list.at(index.row()));
quintptr item = reinterpret_cast<quintptr>(_list.at(index.row()));
stream << item;
++rows;
}