mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
Instead of standard C headers include their C++ counterparts
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
#ifndef QTR_FILE_TREE_ITEM_H
|
#ifndef QTR_FILE_TREE_ITEM_H
|
||||||
#define QTR_FILE_TREE_ITEM_H
|
#define QTR_FILE_TREE_ITEM_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
#ifndef QTR_FILE_TREE_MODEL_H
|
#ifndef QTR_FILE_TREE_MODEL_H
|
||||||
#define QTR_FILE_TREE_MODEL_H
|
#define QTR_FILE_TREE_MODEL_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
|
|
||||||
#include <QAbstractItemModel>
|
#include <QAbstractItemModel>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
#ifndef QTR_FORMATTER_H
|
#ifndef QTR_FORMATTER_H
|
||||||
#define QTR_FORMATTER_H
|
#define QTR_FORMATTER_H
|
||||||
|
|
||||||
#include <stdint.h> // int64_t
|
#include <cstdint> // int64_t
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
#ifndef QTR_FREE_SPACE_LABEL_H
|
#ifndef QTR_FREE_SPACE_LABEL_H
|
||||||
#define QTR_FREE_SPACE_LABEL_H
|
#define QTR_FREE_SPACE_LABEL_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
|
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|||||||
+1
-2
@@ -7,9 +7,8 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <cstdlib>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
|
|||||||
+3
-3
@@ -51,14 +51,14 @@ class TorrentModel: public QAbstractListModel
|
|||||||
virtual int rowCount (const QModelIndex& parent = QModelIndex ()) const;
|
virtual int rowCount (const QModelIndex& parent = QModelIndex ()) const;
|
||||||
virtual QVariant data (const QModelIndex& index, int role = Qt::DisplayRole) const;
|
virtual QVariant data (const QModelIndex& index, int role = Qt::DisplayRole) const;
|
||||||
|
|
||||||
signals:
|
|
||||||
void torrentsAdded (QSet<int>);
|
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void updateTorrents (tr_variant * torrentList, bool isCompleteList);
|
void updateTorrents (tr_variant * torrentList, bool isCompleteList);
|
||||||
void removeTorrents (tr_variant * torrentList);
|
void removeTorrents (tr_variant * torrentList);
|
||||||
void removeTorrent (int id);
|
void removeTorrent (int id);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void torrentsAdded (QSet<int>);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef QMap<int, int> id_to_row_t;
|
typedef QMap<int, int> id_to_row_t;
|
||||||
typedef QMap<int, Torrent*> id_to_torrent_t;
|
typedef QMap<int, Torrent*> id_to_torrent_t;
|
||||||
|
|||||||
Reference in New Issue
Block a user