mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Fix 64 bit compile
This commit is contained in:
parent
e1d471dc63
commit
6c030482a5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user