1
mirror of https://github.com/qbittorrent/qBittorrent synced 2024-09-28 16:12:07 +02:00

Use #pragma once instead of include guards

This commit is contained in:
FranciscoPombal 2020-12-10 17:56:37 +00:00
parent aaeffe3846
commit 6152b83405
122 changed files with 122 additions and 488 deletions

View File

@ -28,8 +28,7 @@
* exception statement from your version.
*/
#ifndef APP_OPTIONS_H
#define APP_OPTIONS_H
#pragma once
#include <stdexcept>
@ -81,5 +80,3 @@ private:
QBtCommandLineParameters parseCommandLine(const QStringList &args);
void displayUsage(const QString &prgName);
#endif // APP_OPTIONS_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef FILELOGGER_H
#define FILELOGGER_H
#pragma once
#include <QFile>
#include <QObject>
@ -73,5 +72,3 @@ private:
QFile m_logFile;
QTimer m_flusher;
};
#endif // FILELOGGER_H

View File

@ -66,8 +66,7 @@
****************************************************************************
*/
#ifndef QTLOCALPEER_H
#define QTLOCALPEER_H
#pragma once
#include "qtlockedfile.h"
@ -99,5 +98,3 @@ protected:
private:
static const char* ack;
};
#endif // QTLOCALPEER_H

View File

@ -66,8 +66,7 @@
****************************************************************************
*/
#ifndef QTLOCKEDFILE_H
#define QTLOCKEDFILE_H
#pragma once
#include <QFile>
@ -112,5 +111,3 @@ namespace QtLP_Private
LockMode m_lock_mode;
};
}
#endif

View File

@ -18,8 +18,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef STACKTRACE_WIN_H
#define STACKTRACE_WIN_H
#pragma once
#include <windows.h>
#include <dbghelp.h>
@ -355,5 +354,3 @@ const QString straceWin::getBacktrace()
#pragma warning(pop)
#pragma optimize("g", on)
#endif
#endif // STACKTRACE_WIN_H

View File

@ -27,8 +27,7 @@
*
*/
#ifndef STACKTRACEDIALOG_H
#define STACKTRACEDIALOG_H
#pragma once
#include <QDialog>
@ -51,5 +50,3 @@ public:
private:
Ui::StacktraceDialog *m_ui;
};
#endif // STACKTRACEDIALOG_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef BANDWIDTHSCHEDULER_H
#define BANDWIDTHSCHEDULER_H
#pragma once
#include <QObject>
#include <QTimer>
@ -52,5 +51,3 @@ private:
QTimer m_timer;
bool m_lastAlternative;
};
#endif // BANDWIDTHSCHEDULER_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef BITTORRENT_CACHESTATUS_H
#define BITTORRENT_CACHESTATUS_H
#pragma once
#include <QtGlobal>
@ -42,5 +41,3 @@ namespace BitTorrent
qreal readRatio = 0.0;
};
}
#endif // BITTORRENT_CACHESTATUS_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef FILTERPARSERTHREAD_H
#define FILTERPARSERTHREAD_H
#pragma once
#include <libtorrent/ip_filter.hpp>
@ -64,5 +63,3 @@ private:
QString m_filePath;
lt::ip_filter m_filter;
};
#endif // BITTORRENT_FILTERPARSERTHREAD_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef BITTORRENT_MAGNETURI_H
#define BITTORRENT_MAGNETURI_H
#pragma once
#include <libtorrent/add_torrent_params.hpp>
@ -65,5 +64,3 @@ namespace BitTorrent
lt::add_torrent_params m_addTorrentParams;
};
}
#endif // BITTORRENT_MAGNETURI_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef BITTORRENT_PEERINFO_H
#define BITTORRENT_PEERINFO_H
#pragma once
#include <libtorrent/peer_info.hpp>
@ -104,5 +103,3 @@ namespace BitTorrent
mutable QString m_country;
};
}
#endif // BITTORRENT_PEERINFO_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef BITTORRENT_SESSION_H
#define BITTORRENT_SESSION_H
#pragma once
#include <memory>
#include <vector>
@ -794,5 +793,3 @@ namespace BitTorrent
Q_DECLARE_METATYPE(std::shared_ptr<lt::entry>)
const int sharedPtrLtEntryTypeID = qRegisterMetaType<std::shared_ptr<lt::entry>>();
#endif
#endif // BITTORRENT_SESSION_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef BITTORRENT_SESSIONSTATUS_H
#define BITTORRENT_SESSIONSTATUS_H
#pragma once
#include <QtGlobal>
@ -74,5 +73,3 @@ namespace BitTorrent
quint64 peersCount = 0;
};
}
#endif // BITTORRENT_SESSIONSTATUS_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef SPEEDMONITOR_H
#define SPEEDMONITOR_H
#pragma once
#ifndef Q_MOC_RUN
#include <boost/circular_buffer.hpp>
@ -86,5 +85,3 @@ private:
boost::circular_buffer<SpeedSample> m_speedSamples;
SpeedSample m_sum;
};
#endif // SPEEDMONITOR_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef STATISTICS_H
#define STATISTICS_H
#pragma once
#include <QObject>
#include <QTimer>
@ -67,5 +66,3 @@ private:
QTimer m_timer;
};
#endif // STATISTICS_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef BITTORRENT_TORRENTCREATORTHREAD_H
#define BITTORRENT_TORRENTCREATORTHREAD_H
#pragma once
#include <libtorrent/version.hpp>
@ -94,5 +93,3 @@ namespace BitTorrent
TorrentCreatorParams m_params;
};
}
#endif // BITTORRENT_TORRENTCREATORTHREAD_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef BITTORRENT_TORRENTINFO_H
#define BITTORRENT_TORRENTINFO_H
#pragma once
#include <libtorrent/torrent_info.hpp>
@ -105,5 +104,3 @@ namespace BitTorrent
std::shared_ptr<lt::torrent_info> m_nativeInfo;
};
}
#endif // BITTORRENT_TORRENTINFO_H

View File

@ -28,8 +28,7 @@
* exception statement from your version.
*/
#ifndef BITTORRENT_TRACKER_H
#define BITTORRENT_TRACKER_H
#pragma once
#include <string>
@ -106,5 +105,3 @@ namespace BitTorrent
QHash<InfoHash, TorrentStats> m_torrents;
};
}
#endif // BITTORRENT_TRACKER_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef BITTORRENT_TRACKERENTRY_H
#define BITTORRENT_TRACKERENTRY_H
#pragma once
#include <libtorrent/announce_entry.hpp>
@ -73,5 +72,3 @@ namespace BitTorrent
bool operator==(const TrackerEntry &left, const TrackerEntry &right);
uint qHash(const TrackerEntry &key, uint seed);
}
#endif // BITTORRENT_TRACKERENTRY_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef FILESYSTEMWATCHER_H
#define FILESYSTEMWATCHER_H
#pragma once
#include <QDir>
#include <QFileSystemWatcher>
@ -69,5 +68,3 @@ private:
QVector<QDir> m_watchedFolders;
QTimer m_watchTimer;
};
#endif // FILESYSTEMWATCHER_H

View File

@ -28,8 +28,7 @@
*/
#ifndef HTTP_CONNECTION_H
#define HTTP_CONNECTION_H
#pragma once
#include <QElapsedTimer>
#include <QObject>
@ -66,5 +65,3 @@ namespace Http
QElapsedTimer m_idleTimer;
};
}
#endif // HTTP_CONNECTION_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef HTTP_IREQUESTHANDLER_H
#define HTTP_IREQUESTHANDLER_H
#pragma once
namespace Http
{
@ -42,5 +41,3 @@ namespace Http
virtual Response processRequest(const Request &request, const Environment &env) = 0;
};
}
#endif // HTTP_IREQUESTHANDLER_H

View File

@ -28,8 +28,7 @@
* exception statement from your version.
*/
#ifndef HTTP_REQUESTPARSER_H
#define HTTP_REQUESTPARSER_H
#pragma once
#include "types.h"
@ -70,5 +69,3 @@ namespace Http
Request m_request;
};
}
#endif // HTTP_REQUESTPARSER_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef HTTP_RESPONSEBUILDER_H
#define HTTP_RESPONSEBUILDER_H
#pragma once
#include "types.h"
@ -50,5 +49,3 @@ namespace Http
Response m_response;
};
}
#endif // HTTP_RESPONSEBUILDER_H

View File

@ -28,8 +28,7 @@
*/
#ifndef HTTP_RESPONSEGENERATOR_H
#define HTTP_RESPONSEGENERATOR_H
#pragma once
class QByteArray;
class QString;
@ -42,5 +41,3 @@ namespace Http
QString httpDate();
void compressContent(Response &response);
}
#endif // HTTP_RESPONSEGENERATOR_H

View File

@ -28,8 +28,7 @@
*/
#ifndef HTTP_SERVER_H
#define HTTP_SERVER_H
#pragma once
#include <QSet>
#include <QSslCertificate>
@ -67,5 +66,3 @@ namespace Http
QSslKey m_key;
};
}
#endif // HTTP_SERVER_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef HTTP_TYPES_H
#define HTTP_TYPES_H
#pragma once
#include <QHostAddress>
#include <QString>
@ -127,5 +126,3 @@ namespace Http
}
};
}
#endif // HTTP_TYPES_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef ICONPROVIDER_H
#define ICONPROVIDER_H
#pragma once
#include <QObject>
@ -51,5 +50,3 @@ protected:
static IconProvider *m_instance;
};
#endif // ICONPROVIDER_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef QBT_INDEXRANGE_H
#define QBT_INDEXRANGE_H
#pragma once
#include <QtGlobal>
@ -169,5 +168,3 @@ private:
IndexType m_first;
IndexDiffType m_size;
};
#endif // QBT_INDEXRANGE_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef LOGGER_H
#define LOGGER_H
#pragma once
#include <boost/circular_buffer.hpp>
@ -103,5 +102,3 @@ private:
// Helper function
void LogMsg(const QString &message, const Log::MsgType &type = Log::NORMAL);
#endif // LOGGER_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef DNSUPDATER_H
#define DNSUPDATER_H
#pragma once
#include <QDateTime>
#include <QHostAddress>
@ -84,5 +83,3 @@ namespace Net
QString m_password;
};
}
#endif // DNSUPDATER_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef NET_DOWNLOADMANAGER_H
#define NET_DOWNLOADMANAGER_H
#pragma once
#include <QHash>
#include <QNetworkAccessManager>
@ -159,5 +158,3 @@ namespace Net
connect(handler, &DownloadHandler::finished, context, slot);
}
}
#endif // NET_DOWNLOADMANAGER_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef GEOIPDATABASE_H
#define GEOIPDATABASE_H
#pragma once
#include <QCoreApplication>
#include <QtGlobal>
@ -100,5 +99,3 @@ private:
quint32 m_size;
uchar *m_data;
};
#endif // GEOIPDATABASE_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef NET_GEOIPMANAGER_H
#define NET_GEOIPMANAGER_H
#pragma once
#include <QObject>
@ -73,5 +72,3 @@ namespace Net
static GeoIPManager *m_instance;
};
}
#endif // NET_GEOIPMANAGER_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef NET_PORTFORWARDER_H
#define NET_PORTFORWARDER_H
#pragma once
#include <QObject>
@ -53,5 +52,3 @@ namespace Net
static PortForwarder *m_instance;
};
}
#endif // NET_PORTFORWARDER_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef NET_PROXYCONFIGURATIONMANAGER_H
#define NET_PROXYCONFIGURATIONMANAGER_H
#pragma once
#include <QObject>
@ -85,5 +84,3 @@ namespace Net
bool m_isProxyOnlyForTorrents;
};
}
#endif // NET_PROXYCONFIGURATIONMANAGER_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef NET_REVERSERESOLUTION_H
#define NET_REVERSERESOLUTION_H
#pragma once
#include <QCache>
#include <QObject>
@ -60,5 +59,3 @@ namespace Net
QCache<QHostAddress, QString> m_cache; // <IP, HostName>
};
}
#endif // NET_REVERSERESOLUTION_H

View File

@ -30,8 +30,7 @@
* This code is based on QxtSmtp from libqxt (http://libqxt.org)
*/
#ifndef SMTP_H
#define SMTP_H
#pragma once
#include <QAbstractSocket>
#include <QByteArray>
@ -119,5 +118,3 @@ namespace Net
QString m_password;
};
}
#endif // SMTP_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef PREFERENCES_H
#define PREFERENCES_H
#pragma once
#include <QtContainerFwd>
#include <QVariant>
@ -403,5 +402,3 @@ public slots:
void apply();
};
#endif // PREFERENCES_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef QBT_PROFILE_H
#define QBT_PROFILE_H
#pragma once
#include <memory>
@ -82,5 +81,3 @@ private:
};
QString specialFolderLocation(SpecialFolder folder);
#endif // QBT_PROFILE_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef QBT_PROFILE_P_H
#define QBT_PROFILE_P_H
#pragma once
#include <QDir>
#include <QStandardPaths>
@ -132,5 +131,3 @@ namespace Private
QDir m_baseDir;
};
}
#endif // QBT_PROFILE_P_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef SCANFOLDERSMODEL_H
#define SCANFOLDERSMODEL_H
#pragma once
#include <QAbstractListModel>
#include <QList>
@ -110,5 +109,3 @@ private:
QList<PathData*> m_pathList;
FileSystemWatcher *m_fsWatcher;
};
#endif // SCANFOLDERSMODEL_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef SETTINGSSTORAGE_H
#define SETTINGSSTORAGE_H
#pragma once
#include <QObject>
#include <QReadWriteLock>
@ -61,5 +60,3 @@ private:
QTimer m_timer;
mutable QReadWriteLock m_lock;
};
#endif // SETTINGSSTORAGE_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef SETTINGVALUE_H
#define SETTINGVALUE_H
#pragma once
#include <type_traits>
@ -114,5 +113,3 @@ private:
const QString m_keyName;
T m_value;
};
#endif // SETTINGVALUE_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TORRENTFILTER_H
#define TORRENTFILTER_H
#pragma once
#include <QSet>
#include <QString>
@ -102,5 +101,3 @@ private:
QString m_tag;
InfoHashSet m_hashSet;
};
#endif // TORRENTFILTER_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TRISTATEBOOL_H
#define TRISTATEBOOL_H
#pragma once
class TriStateBool
{
@ -68,5 +67,3 @@ constexpr bool operator!=(const TriStateBool &left, const TriStateBool &right)
{
return !(left == right);
}
#endif // TRISTATEBOOL_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TYPES_H
#define TYPES_H
#pragma once
#include <QtContainerFwd>
@ -42,5 +41,3 @@ enum class ShutdownDialogAction
};
typedef QMap<QString, QString> QStringMap;
#endif // TYPES_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef UTILS_FS_H
#define UTILS_FS_H
#pragma once
/**
* Utility functions related to file system.
@ -79,5 +78,3 @@ namespace Utils
#endif
}
}
#endif // UTILS_FS_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef UTILS_GZIP_H
#define UTILS_GZIP_H
#pragma once
class QByteArray;
@ -40,5 +39,3 @@ namespace Utils
QByteArray decompress(const QByteArray &data, bool *ok = nullptr);
}
}
#endif // UTILS_GZIP_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef UTILS_MISC_H
#define UTILS_MISC_H
#pragma once
#include <QtGlobal>
@ -108,5 +107,3 @@ namespace Utils
#endif // Q_OS_WIN
}
}
#endif // UTILS_MISC_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef BASE_UTILS_NET_H
#define BASE_UTILS_NET_H
#pragma once
#include <QHostAddress>
#include <QtContainerFwd>
@ -57,5 +56,3 @@ namespace Utils
bool isSSLKeyValid(const QByteArray &data);
}
}
#endif // BASE_UTILS_NET_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef UTILS_RANDOM_H
#define UTILS_RANDOM_H
#pragma once
#include <cstdint>
#include <limits>
@ -39,5 +38,3 @@ namespace Utils
uint32_t rand(uint32_t min = 0, uint32_t max = std::numeric_limits<uint32_t>::max());
}
}
#endif // UTILS_FS_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef UTILS_STRING_H
#define UTILS_STRING_H
#pragma once
#include <QChar>
#include <QString>
@ -74,5 +73,3 @@ namespace Utils
QString join(const QVector<QStringRef> &strings, const QString &separator);
}
}
#endif // UTILS_STRING_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef QBITTORRENT_UTILS_VERSION_H
#define QBITTORRENT_UTILS_VERSION_H
#pragma once
#include <array>
#include <stdexcept>
@ -210,5 +209,3 @@ namespace Utils
return !(left < right);
}
}
#endif // QBITTORRENT_UTILS_VERSION_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef ABOUTDIALOG_H
#define ABOUTDIALOG_H
#pragma once
#include <QDialog>
@ -48,5 +47,3 @@ public:
private:
Ui::AboutDialog *m_ui;
};
#endif // ABOUTDIALOG_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef ADDNEWTORRENTDIALOG_H
#define ADDNEWTORRENTDIALOG_H
#pragma once
#include <memory>
@ -122,5 +121,3 @@ private:
CachedSettingValue<QSize> m_storeDialogSize;
CachedSettingValue<QByteArray> m_storeSplitterState;
};
#endif // ADDNEWTORRENTDIALOG_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef ADVANCEDSETTINGS_H
#define ADVANCEDSETTINGS_H
#pragma once
#include <libtorrent/version.hpp>
@ -86,5 +85,3 @@ private:
QComboBox m_comboBoxOSMemoryPriority;
#endif
};
#endif // ADVANCEDSETTINGS_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef AUTOEXPANDABLEDIALOG_H
#define AUTOEXPANDABLEDIALOG_H
#pragma once
#include <QDialog>
#include <QLineEdit>
@ -57,5 +56,3 @@ protected:
private:
Ui::AutoExpandableDialog *m_ui;
};
#endif // AUTOEXPANDABLEDIALOG_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef BANLISTOPTIONSDIALOG_H
#define BANLISTOPTIONSDIALOG_H
#pragma once
#include <QDialog>
@ -59,5 +58,3 @@ private:
QSortFilterProxyModel *m_sortFilter;
bool m_modified;
};
#endif // BANLISTOPTIONSDIALOG_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef CATEGORYFILTERMODEL_H
#define CATEGORYFILTERMODEL_H
#pragma once
#include <QAbstractItemModel>
@ -77,5 +76,3 @@ private:
bool m_isSubcategoriesEnabled;
CategoryModelItem *m_rootItem;
};
#endif // CATEGORYFILTERMODEL_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef CATEGORYFILTERPROXYMODEL_H
#define CATEGORYFILTERPROXYMODEL_H
#pragma once
#include <QSortFilterProxyModel>
@ -49,5 +48,3 @@ private:
// we added another overload of index(), hence this using directive:
using QSortFilterProxyModel::index;
};
#endif // CATEGORYFILTERPROXYMODEL_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef COOKIESDIALOG_H
#define COOKIESDIALOG_H
#pragma once
#include <QDialog>
@ -57,5 +56,3 @@ private:
Ui::CookiesDialog *m_ui;
CookiesModel *m_cookiesModel;
};
#endif // COOKIESDIALOG_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef COOKIESMODEL_H
#define COOKIESMODEL_H
#pragma once
#include <QAbstractItemModel>
#include <QList>
@ -70,5 +69,3 @@ public:
private:
mutable QList<QNetworkCookie> m_cookies;
};
#endif // COOKIESMODEL_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef DELETIONCONFIRMATIONDIALOG_H
#define DELETIONCONFIRMATIONDIALOG_H
#pragma once
#include <QDialog>
@ -55,5 +54,3 @@ private slots:
private:
Ui::DeletionConfirmationDialog *m_ui;
};
#endif // DELETIONCONFIRMATIONDIALOG_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef DOWNLOADFROMURL_H
#define DOWNLOADFROMURL_H
#pragma once
#include <QDialog>
@ -54,5 +53,3 @@ private slots:
private:
Ui::DownloadFromURLDialog *m_ui;
};
#endif // DOWNLOADFROMURL_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef EXECUTIONLOGWIDGET_H
#define EXECUTIONLOGWIDGET_H
#pragma once
#include <QWidget>
@ -58,5 +57,3 @@ private:
Ui::ExecutionLogWidget *m_ui;
LogFilterModel *m_messageFilterModel;
};
#endif // EXECUTIONLOGWIDGET_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef QBT_FSPATHEDIT_H
#define QBT_FSPATHEDIT_H
#pragma once
#include <QWidget>
@ -149,5 +148,3 @@ private:
QString editWidgetText() const override;
void setEditWidgetText(const QString &text) override;
};
#endif // QBT_FSPATHEDIT_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef QBT_GUI_FSPATHEDIT_P_H
#define QBT_GUI_FSPATHEDIT_P_H
#pragma once
#include <QComboBox>
#include <QFileIconProvider>
@ -157,5 +156,3 @@ namespace Private
QString text() const;
};
}
#endif // QBT_GUI_FSPATHEDIT_P_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef HIDABLETABWIDGET_H
#define HIDABLETABWIDGET_H
#pragma once
#include <QTabWidget>
@ -48,5 +47,3 @@ private:
void paintEvent(QPaintEvent *event) override;
#endif
};
#endif // HIDABLETABWIDGET_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef OPTIONS_IPSUBNETWHITELIST_H
#define OPTIONS_IPSUBNETWHITELIST_H
#pragma once
#include <QDialog>
@ -60,5 +59,3 @@ private:
QSortFilterProxyModel *m_sortFilter;
bool m_modified;
};
#endif // OPTIONS_IPSUBNETWHITELIST_H

View File

@ -7,8 +7,7 @@
**
****************************************************************************/
#ifndef LINEEDIT_H
#define LINEEDIT_H
#pragma once
#include <QLineEdit>
@ -28,5 +27,3 @@ protected:
private:
QToolButton *m_searchButton;
};
#endif // LIENEDIT_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef MACUTILITIES_H
#define MACUTILITIES_H
#pragma once
#include <objc/objc.h>
@ -44,5 +43,3 @@ namespace MacUtils
void displayNotification(const QString &title, const QString &message);
void openFiles(const QSet<QString> &pathsList);
}
#endif // MACUTILITIES_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#pragma once
#include <QMainWindow>
#include <QPointer>
@ -263,5 +262,3 @@ private:
bool m_hasPython;
QMenu *m_toolbarMenu;
};
#endif // MAINWINDOW_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H
#pragma once
#include <QDialog>
@ -183,5 +182,3 @@ private:
QList<QString> m_addedScanDirs;
QList<QString> m_removedScanDirs;
};
#endif // OPTIONSDIALOG_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef POWERMANAGEMENT_H
#define POWERMANAGEMENT_H
#pragma once
#include <QObject>
@ -64,5 +63,3 @@ private:
IOPMAssertionID m_assertionID;
#endif
};
#endif // POWERMANAGEMENT_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef POWERMANAGEMENTINHIBITOR_H
#define POWERMANAGEMENTINHIBITOR_H
#pragma once
#include <QObject>
@ -63,5 +62,3 @@ private:
bool m_useGSM;
};
#endif // POWERMANAGEMENTINHIBITOR_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef PREVIEWLISTDELEGATE_H
#define PREVIEWLISTDELEGATE_H
#pragma once
#include <QItemDelegate>
@ -43,5 +42,3 @@ private:
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
QWidget *createEditor(QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const override;
};
#endif // PREVIEWLISTDELEGATE_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef PREVIEWSELECTDIALOG_H
#define PREVIEWSELECTDIALOG_H
#pragma once
#include <QDialog>
@ -86,5 +85,3 @@ private:
CachedSettingValue<QSize> m_storeDialogSize;
CachedSettingValue<QByteArray> m_storeTreeHeaderState;
};
#endif // PREVIEWSELECTDIALOG_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef PROGRAMUPDATER_H
#define PROGRAMUPDATER_H
#pragma once
#include <QObject>
@ -59,5 +58,3 @@ private:
QString m_updateUrl;
bool m_invokedByUser;
};
#endif // PROGRAMUPDATER_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef DOWNLOADEDPIECESBAR_H
#define DOWNLOADEDPIECESBAR_H
#pragma once
#include <QBitArray>
#include <QtContainerFwd>
@ -63,5 +62,3 @@ private:
QBitArray m_pieces;
QBitArray m_downloadedPieces;
};
#endif // DOWNLOADEDPIECESBAR_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef PEERLISTSORTMODEL_H
#define PEERLISTSORTMODEL_H
#pragma once
#include <QSortFilterProxyModel>
@ -47,5 +46,3 @@ public:
private:
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
};
#endif // PEERLISTSORTMODEL_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef PEERLISTWIDGET_H
#define PEERLISTWIDGET_H
#pragma once
#include <QHash>
#include <QSet>
@ -109,5 +108,3 @@ private:
QHash<QHostAddress, QSet<QStandardItem *>> m_itemsByIP; // must be kept in sync with `m_peerItems`
bool m_resolveCountries;
};
#endif // PEERLISTWIDGET_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef PEERADDITION_H
#define PEERADDITION_H
#pragma once
#include <QDialog>
#include <QVector>
@ -56,5 +55,3 @@ private:
Ui::PeersAdditionDialog *m_ui;
QVector<BitTorrent::PeerAddress> m_peersList;
};
#endif // PEERADDITION_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef PIECEAVAILABILITYBAR_H
#define PIECEAVAILABILITYBAR_H
#pragma once
#include "piecesbar.h"
@ -56,5 +55,3 @@ private:
// scale int vector to float vector
QVector<float> intToFloatVector(const QVector<int> &vecin, int reqSize);
};
#endif // PIECEAVAILABILITYBAR_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef PIECESBAR_H
#define PIECESBAR_H
#pragma once
#include <QColor>
#include <QImage>
@ -95,5 +94,3 @@ private:
bool m_hovered;
QRect m_highlitedRegion; //!< part of the bar can be highlighted; this rectangle is in the same frame as m_image
};
#endif // PIECESBAR_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef PROPERTIESWIDGET_H
#define PROPERTIESWIDGET_H
#pragma once
#include <QList>
#include <QWidget>
@ -125,5 +124,3 @@ private:
LineEdit *m_contentFilterLine;
int m_handleWidth;
};
#endif // PROPERTIESWIDGET_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef PROPLISTDELEGATE_H
#define PROPLISTDELEGATE_H
#pragma once
#include "gui/progressbardelegate.h"
@ -71,5 +70,3 @@ private:
PropertiesWidget *m_properties;
};
#endif // PROPLISTDELEGATE_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef PROPTABBAR_H
#define PROPTABBAR_H
#pragma once
#include <QHBoxLayout>
@ -64,5 +63,3 @@ private:
QButtonGroup *m_btnGroup;
int m_currentIndex;
};
#endif // PROPTABBAR_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef SPEEDPLOTVIEW_H
#define SPEEDPLOTVIEW_H
#pragma once
#ifndef Q_MOC_RUN
#include <boost/circular_buffer.hpp>
@ -131,5 +130,3 @@ private:
TimePeriod m_period;
int m_viewablePointsCount;
};
#endif // SPEEDPLOTVIEW_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef SPEEDWIDGET_H
#define SPEEDWIDGET_H
#pragma once
#include <QComboBox>
#include <QWidget>
@ -80,5 +79,3 @@ private:
QMenu *m_graphsMenu;
QList<QAction *> m_graphsMenuActions;
};
#endif // SPEEDWIDGET_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TRACKERLIST_H
#define TRACKERLIST_H
#pragma once
#include <QTreeWidget>
#include <QtContainerFwd>
@ -95,5 +94,3 @@ private:
QTreeWidgetItem *m_PEXItem;
QTreeWidgetItem *m_LSDItem;
};
#endif // TRACKERLIST_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TRACKERSADDITION_H
#define TRACKERSADDITION_H
#pragma once
#include <QDialog>
#include <QtContainerFwd>
@ -68,5 +67,3 @@ private:
Ui::TrackersAdditionDialog *m_ui;
BitTorrent::TorrentHandle *const m_torrent;
};
#endif // TRACKERSADDITION_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef RAISEDMESSAGEBOX_H
#define RAISEDMESSAGEBOX_H
#pragma once
#include <QMessageBox>
@ -52,5 +51,3 @@ private:
static QMessageBox::StandardButton impl(const QMessageBox::Icon &icon, QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton);
};
#endif // RAISEDMESSAGEBOX_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef ARTICLELISTWIDGET_H
#define ARTICLELISTWIDGET_H
#pragma once
#include <QHash>
#include <QListWidget>
@ -63,5 +62,3 @@ private:
bool m_unreadOnly = false;
QHash<RSS::Article *, QListWidgetItem *> m_rssArticleToListItemMapping;
};
#endif // ARTICLELISTWIDGET_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef AUTOMATEDRSSDOWNLOADER_H
#define AUTOMATEDRSSDOWNLOADER_H
#pragma once
#include <QDialog>
#include <QHash>
@ -106,5 +105,3 @@ private:
QHash<QString, QListWidgetItem *> m_itemsByRuleName;
QRegularExpression *m_episodeRegex;
};
#endif // AUTOMATEDRSSDOWNLOADER_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef FEEDLISTWIDGET_H
#define FEEDLISTWIDGET_H
#pragma once
#include <QHash>
#include <QTreeWidget>
@ -73,5 +72,3 @@ private:
QHash<RSS::Item *, QTreeWidgetItem *> m_rssToTreeItemMapping;
QTreeWidgetItem *m_unreadStickyItem;
};
#endif // FEEDLISTWIDGET_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef HTMLBROWSER_H
#define HTMLBROWSER_H
#pragma once
#include <QHash>
#include <QTextBrowser>
@ -54,5 +53,3 @@ protected:
protected slots:
void resourceLoaded(QNetworkReply *reply);
};
#endif // HTMLBROWSER_H

View File

@ -28,8 +28,7 @@
* exception statement from your version.
*/
#ifndef RSSWIDGET_H
#define RSSWIDGET_H
#pragma once
#include <QWidget>
@ -86,5 +85,3 @@ private:
ArticleListWidget *m_articleListWidget;
FeedListWidget *m_feedListWidget;
};
#endif // RSSWIDGET_H

View File

@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef SCANFOLDERSDELEGATE_H
#define SCANFOLDERSDELEGATE_H
#pragma once
#include <QStyledItemDelegate>
@ -57,5 +56,3 @@ private:
QTreeView *m_folderView;
};
#endif // SCANFOLDERSDELEGATE_H

View File

@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef PLUGINSELECTDIALOG_H
#define PLUGINSELECTDIALOG_H
#pragma once
#include <QDialog>
#include <QStringList>
@ -97,5 +96,3 @@ private:
int m_asyncOps;
int m_pendingUpdates;
};
#endif // PLUGINSELECTDIALOG_H

Some files were not shown because too many files have changed in this diff Show More