#include <QObject>
#include <QIcon>
+#include <stdint.h> // int64_t
+
class Speed;
class Formatter: public QObject
#ifndef QTR_FREESPACE_LABEL_H
#define QTR_FREESPACE_LABEL_H
+#include <stdint.h>
+
#include <QString>
#include <QTimer>
-
#include <QLabel>
class Session;
#include <QDialog>
#include <QTimer>
-struct QAbstractButton;
-struct QPlainTextEdit;
-struct QLineEdit;
-struct QCheckBox;
-struct QLabel;
-struct QPushButton;
-struct QRadioButton;
-struct Session;
-struct QProgressBar;
-struct QDialogButtonBox;
+class QAbstractButton;
+class QPlainTextEdit;
+class QLineEdit;
+class QCheckBox;
+class QLabel;
+class QPushButton;
+class QRadioButton;
+class Session;
+class QProgressBar;
+class QDialogButtonBox;
extern "C"
{
* $Id$
*/
+#include <algorithm> // std::min()
+
#include <QApplication>
#include <QCheckBox>
#include <QComboBox>
void
TorrentFilter :: countTorrentsPerMode (int * setmeCounts) const
{
- std::fill_n (setmeCounts, FilterMode::NUM_MODES, 0);
+ std::fill_n (setmeCounts, static_cast<std::size_t>(FilterMode::NUM_MODES), 0);
for (int row(0); ; ++row)
{
#include "speed.h"
#include "types.h"
+#ifdef ERROR
+ #undef ERROR
+#endif
+
extern "C"
{
struct tr_variant;
* $Id$
*/
-#ifndef QTR_TORRENT_DELEGATE_H
-#define QTR_TORRENT_DELEGATE_H
+#ifndef QTR_TRACKER_DELEGATE_H
+#define QTR_TRACKER_DELEGATE_H
#include <QItemDelegate>
#include <QSize>
class QStyleOptionViewItem;
class QStyle;
class Session;
-class TrackerInfo;
+struct TrackerInfo;
class TrackerDelegate: public QItemDelegate
{