Browse Source

- Fix compilation errors on Fedora

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
e645133baf
  1. 8
      src/peerlistwidget.cpp
  2. 2
      src/torrentfilesmodel.h

8
src/peerlistwidget.cpp

@ -314,8 +314,8 @@ QStandardItem* PeerListWidget::addPeer(QString ip, peer_info peer) { @@ -314,8 +314,8 @@ QStandardItem* PeerListWidget::addPeer(QString ip, peer_info peer) {
listModel->setData(listModel->index(row, PROGRESS), peer.progress);
listModel->setData(listModel->index(row, DOWN_SPEED), peer.payload_down_speed);
listModel->setData(listModel->index(row, UP_SPEED), peer.payload_up_speed);
listModel->setData(listModel->index(row, TOT_DOWN), peer.total_download);
listModel->setData(listModel->index(row, TOT_UP), peer.total_upload);
listModel->setData(listModel->index(row, TOT_DOWN), (qulonglong)peer.total_download);
listModel->setData(listModel->index(row, TOT_UP), (qulonglong)peer.total_upload);
return listModel->item(row, IP);
}
@ -333,8 +333,8 @@ void PeerListWidget::updatePeer(QString ip, peer_info peer) { @@ -333,8 +333,8 @@ void PeerListWidget::updatePeer(QString ip, peer_info peer) {
listModel->setData(listModel->index(row, PROGRESS), peer.progress);
listModel->setData(listModel->index(row, DOWN_SPEED), peer.payload_down_speed);
listModel->setData(listModel->index(row, UP_SPEED), peer.payload_up_speed);
listModel->setData(listModel->index(row, TOT_DOWN), peer.total_download);
listModel->setData(listModel->index(row, TOT_UP), peer.total_upload);
listModel->setData(listModel->index(row, TOT_DOWN), (qulonglong)peer.total_download);
listModel->setData(listModel->index(row, TOT_UP), (qulonglong)peer.total_upload);
}
void PeerListWidget::handleResolved(QString ip, QString hostname) {

2
src/torrentfilesmodel.h

@ -56,7 +56,7 @@ public: @@ -56,7 +56,7 @@ public:
itemData << misc::toQString(f.path.string()).split("/").last();
qDebug("Created a TreeItem file with name %s", getName().toLocal8Bit().data());
qDebug("parent is %s", parent->getName().toLocal8Bit().data());
itemData << f.size;
itemData << QVariant((qulonglong)f.size);
itemData << 0.; // Progress;
itemData << 1; // Priority
if(parent) {

Loading…
Cancel
Save