Browse Source

Use #pragma once instead of include guards

adaptive-webui-19844
FranciscoPombal 4 years ago
parent
commit
6152b83405
  1. 5
      src/app/cmdoptions.h
  2. 5
      src/app/filelogger.h
  3. 5
      src/app/qtlocalpeer/qtlocalpeer.h
  4. 5
      src/app/qtlocalpeer/qtlockedfile.h
  5. 5
      src/app/stacktrace_win.h
  6. 5
      src/app/stacktracedialog.h
  7. 5
      src/base/bittorrent/bandwidthscheduler.h
  8. 5
      src/base/bittorrent/cachestatus.h
  9. 5
      src/base/bittorrent/filterparserthread.h
  10. 5
      src/base/bittorrent/magneturi.h
  11. 5
      src/base/bittorrent/peerinfo.h
  12. 5
      src/base/bittorrent/session.h
  13. 5
      src/base/bittorrent/sessionstatus.h
  14. 5
      src/base/bittorrent/speedmonitor.h
  15. 5
      src/base/bittorrent/statistics.h
  16. 5
      src/base/bittorrent/torrentcreatorthread.h
  17. 5
      src/base/bittorrent/torrentinfo.h
  18. 5
      src/base/bittorrent/tracker.h
  19. 5
      src/base/bittorrent/trackerentry.h
  20. 5
      src/base/filesystemwatcher.h
  21. 5
      src/base/http/connection.h
  22. 5
      src/base/http/irequesthandler.h
  23. 5
      src/base/http/requestparser.h
  24. 5
      src/base/http/responsebuilder.h
  25. 5
      src/base/http/responsegenerator.h
  26. 5
      src/base/http/server.h
  27. 5
      src/base/http/types.h
  28. 5
      src/base/iconprovider.h
  29. 5
      src/base/indexrange.h
  30. 5
      src/base/logger.h
  31. 5
      src/base/net/dnsupdater.h
  32. 5
      src/base/net/downloadmanager.h
  33. 5
      src/base/net/geoipdatabase.h
  34. 5
      src/base/net/geoipmanager.h
  35. 5
      src/base/net/portforwarder.h
  36. 5
      src/base/net/proxyconfigurationmanager.h
  37. 5
      src/base/net/reverseresolution.h
  38. 5
      src/base/net/smtp.h
  39. 5
      src/base/preferences.h
  40. 5
      src/base/profile.h
  41. 5
      src/base/profile_p.h
  42. 5
      src/base/scanfoldersmodel.h
  43. 5
      src/base/settingsstorage.h
  44. 5
      src/base/settingvalue.h
  45. 5
      src/base/torrentfilter.h
  46. 5
      src/base/tristatebool.h
  47. 5
      src/base/types.h
  48. 5
      src/base/utils/fs.h
  49. 5
      src/base/utils/gzip.h
  50. 5
      src/base/utils/misc.h
  51. 5
      src/base/utils/net.h
  52. 5
      src/base/utils/random.h
  53. 5
      src/base/utils/string.h
  54. 5
      src/base/utils/version.h
  55. 5
      src/gui/aboutdialog.h
  56. 5
      src/gui/addnewtorrentdialog.h
  57. 5
      src/gui/advancedsettings.h
  58. 5
      src/gui/autoexpandabledialog.h
  59. 5
      src/gui/banlistoptionsdialog.h
  60. 5
      src/gui/categoryfiltermodel.h
  61. 5
      src/gui/categoryfilterproxymodel.h
  62. 5
      src/gui/cookiesdialog.h
  63. 5
      src/gui/cookiesmodel.h
  64. 5
      src/gui/deletionconfirmationdialog.h
  65. 5
      src/gui/downloadfromurldialog.h
  66. 5
      src/gui/executionlogwidget.h
  67. 5
      src/gui/fspathedit.h
  68. 5
      src/gui/fspathedit_p.h
  69. 5
      src/gui/hidabletabwidget.h
  70. 5
      src/gui/ipsubnetwhitelistoptionsdialog.h
  71. 5
      src/gui/lineedit.h
  72. 5
      src/gui/macutilities.h
  73. 5
      src/gui/mainwindow.h
  74. 5
      src/gui/optionsdialog.h
  75. 5
      src/gui/powermanagement/powermanagement.h
  76. 5
      src/gui/powermanagement/powermanagement_x11.h
  77. 5
      src/gui/previewlistdelegate.h
  78. 5
      src/gui/previewselectdialog.h
  79. 5
      src/gui/programupdater.h
  80. 5
      src/gui/properties/downloadedpiecesbar.h
  81. 5
      src/gui/properties/peerlistsortmodel.h
  82. 5
      src/gui/properties/peerlistwidget.h
  83. 5
      src/gui/properties/peersadditiondialog.h
  84. 5
      src/gui/properties/pieceavailabilitybar.h
  85. 5
      src/gui/properties/piecesbar.h
  86. 5
      src/gui/properties/propertieswidget.h
  87. 5
      src/gui/properties/proplistdelegate.h
  88. 5
      src/gui/properties/proptabbar.h
  89. 5
      src/gui/properties/speedplotview.h
  90. 5
      src/gui/properties/speedwidget.h
  91. 5
      src/gui/properties/trackerlistwidget.h
  92. 5
      src/gui/properties/trackersadditiondialog.h
  93. 5
      src/gui/raisedmessagebox.h
  94. 5
      src/gui/rss/articlelistwidget.h
  95. 5
      src/gui/rss/automatedrssdownloader.h
  96. 5
      src/gui/rss/feedlistwidget.h
  97. 5
      src/gui/rss/htmlbrowser.h
  98. 5
      src/gui/rss/rsswidget.h
  99. 5
      src/gui/scanfoldersdelegate.h
  100. 5
      src/gui/search/pluginselectdialog.h
  101. Some files were not shown because too many files have changed in this diff Show More

5
src/app/cmdoptions.h

@ -28,8 +28,7 @@ @@ -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: @@ -81,5 +80,3 @@ private:
QBtCommandLineParameters parseCommandLine(const QStringList &args);
void displayUsage(const QString &prgName);
#endif // APP_OPTIONS_H

5
src/app/filelogger.h

@ -26,8 +26,7 @@ @@ -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: @@ -73,5 +72,3 @@ private:
QFile m_logFile;
QTimer m_flusher;
};
#endif // FILELOGGER_H

5
src/app/qtlocalpeer/qtlocalpeer.h

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

5
src/app/qtlocalpeer/qtlockedfile.h

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

5
src/app/stacktrace_win.h

@ -18,8 +18,7 @@ @@ -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() @@ -355,5 +354,3 @@ const QString straceWin::getBacktrace()
#pragma warning(pop)
#pragma optimize("g", on)
#endif
#endif // STACKTRACE_WIN_H

5
src/app/stacktracedialog.h

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

5
src/base/bittorrent/bandwidthscheduler.h

@ -27,8 +27,7 @@ @@ -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: @@ -52,5 +51,3 @@ private:
QTimer m_timer;
bool m_lastAlternative;
};
#endif // BANDWIDTHSCHEDULER_H

5
src/base/bittorrent/cachestatus.h

@ -26,8 +26,7 @@ @@ -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 @@ -42,5 +41,3 @@ namespace BitTorrent
qreal readRatio = 0.0;
};
}
#endif // BITTORRENT_CACHESTATUS_H

5
src/base/bittorrent/filterparserthread.h

@ -26,8 +26,7 @@ @@ -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: @@ -64,5 +63,3 @@ private:
QString m_filePath;
lt::ip_filter m_filter;
};
#endif // BITTORRENT_FILTERPARSERTHREAD_H

5
src/base/bittorrent/magneturi.h

@ -26,8 +26,7 @@ @@ -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 @@ -65,5 +64,3 @@ namespace BitTorrent
lt::add_torrent_params m_addTorrentParams;
};
}
#endif // BITTORRENT_MAGNETURI_H

5
src/base/bittorrent/peerinfo.h

@ -26,8 +26,7 @@ @@ -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 @@ -104,5 +103,3 @@ namespace BitTorrent
mutable QString m_country;
};
}
#endif // BITTORRENT_PEERINFO_H

5
src/base/bittorrent/session.h

@ -27,8 +27,7 @@ @@ -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 @@ -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

5
src/base/bittorrent/sessionstatus.h

@ -26,8 +26,7 @@ @@ -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 @@ -74,5 +73,3 @@ namespace BitTorrent
quint64 peersCount = 0;
};
}
#endif // BITTORRENT_SESSIONSTATUS_H

5
src/base/bittorrent/speedmonitor.h

@ -27,8 +27,7 @@ @@ -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: @@ -86,5 +85,3 @@ private:
boost::circular_buffer<SpeedSample> m_speedSamples;
SpeedSample m_sum;
};
#endif // SPEEDMONITOR_H

5
src/base/bittorrent/statistics.h

@ -26,8 +26,7 @@ @@ -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: @@ -67,5 +66,3 @@ private:
QTimer m_timer;
};
#endif // STATISTICS_H

5
src/base/bittorrent/torrentcreatorthread.h

@ -26,8 +26,7 @@ @@ -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 @@ -94,5 +93,3 @@ namespace BitTorrent
TorrentCreatorParams m_params;
};
}
#endif // BITTORRENT_TORRENTCREATORTHREAD_H

5
src/base/bittorrent/torrentinfo.h

@ -26,8 +26,7 @@ @@ -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 @@ -105,5 +104,3 @@ namespace BitTorrent
std::shared_ptr<lt::torrent_info> m_nativeInfo;
};
}
#endif // BITTORRENT_TORRENTINFO_H

5
src/base/bittorrent/tracker.h

@ -28,8 +28,7 @@ @@ -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 @@ -106,5 +105,3 @@ namespace BitTorrent
QHash<InfoHash, TorrentStats> m_torrents;
};
}
#endif // BITTORRENT_TRACKER_H

5
src/base/bittorrent/trackerentry.h

@ -26,8 +26,7 @@ @@ -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 @@ -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

5
src/base/filesystemwatcher.h

@ -26,8 +26,7 @@ @@ -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: @@ -69,5 +68,3 @@ private:
QVector<QDir> m_watchedFolders;
QTimer m_watchTimer;
};
#endif // FILESYSTEMWATCHER_H

5
src/base/http/connection.h

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

5
src/base/http/irequesthandler.h

@ -26,8 +26,7 @@ @@ -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 @@ -42,5 +41,3 @@ namespace Http
virtual Response processRequest(const Request &request, const Environment &env) = 0;
};
}
#endif // HTTP_IREQUESTHANDLER_H

5
src/base/http/requestparser.h

@ -28,8 +28,7 @@ @@ -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 @@ -70,5 +69,3 @@ namespace Http
Request m_request;
};
}
#endif // HTTP_REQUESTPARSER_H

5
src/base/http/responsebuilder.h

@ -26,8 +26,7 @@ @@ -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 @@ -50,5 +49,3 @@ namespace Http
Response m_response;
};
}
#endif // HTTP_RESPONSEBUILDER_H

5
src/base/http/responsegenerator.h

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

5
src/base/http/server.h

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

5
src/base/http/types.h

@ -27,8 +27,7 @@ @@ -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 @@ -127,5 +126,3 @@ namespace Http
}
};
}
#endif // HTTP_TYPES_H

5
src/base/iconprovider.h

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

5
src/base/indexrange.h

@ -26,8 +26,7 @@ @@ -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: @@ -169,5 +168,3 @@ private:
IndexType m_first;
IndexDiffType m_size;
};
#endif // QBT_INDEXRANGE_H

5
src/base/logger.h

@ -26,8 +26,7 @@ @@ -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: @@ -103,5 +102,3 @@ private:
// Helper function
void LogMsg(const QString &message, const Log::MsgType &type = Log::NORMAL);
#endif // LOGGER_H

5
src/base/net/dnsupdater.h

@ -26,8 +26,7 @@ @@ -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 @@ -84,5 +83,3 @@ namespace Net
QString m_password;
};
}
#endif // DNSUPDATER_H

5
src/base/net/downloadmanager.h

@ -27,8 +27,7 @@ @@ -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 @@ -159,5 +158,3 @@ namespace Net
connect(handler, &DownloadHandler::finished, context, slot);
}
}
#endif // NET_DOWNLOADMANAGER_H

5
src/base/net/geoipdatabase.h

@ -26,8 +26,7 @@ @@ -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: @@ -100,5 +99,3 @@ private:
quint32 m_size;
uchar *m_data;
};
#endif // GEOIPDATABASE_H

5
src/base/net/geoipmanager.h

@ -27,8 +27,7 @@ @@ -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 @@ -73,5 +72,3 @@ namespace Net
static GeoIPManager *m_instance;
};
}
#endif // NET_GEOIPMANAGER_H

5
src/base/net/portforwarder.h

@ -26,8 +26,7 @@ @@ -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 @@ -53,5 +52,3 @@ namespace Net
static PortForwarder *m_instance;
};
}
#endif // NET_PORTFORWARDER_H

5
src/base/net/proxyconfigurationmanager.h

@ -26,8 +26,7 @@ @@ -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 @@ -85,5 +84,3 @@ namespace Net
bool m_isProxyOnlyForTorrents;
};
}
#endif // NET_PROXYCONFIGURATIONMANAGER_H

5
src/base/net/reverseresolution.h

@ -26,8 +26,7 @@ @@ -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 @@ -60,5 +59,3 @@ namespace Net
QCache<QHostAddress, QString> m_cache; // <IP, HostName>
};
}
#endif // NET_REVERSERESOLUTION_H

5
src/base/net/smtp.h

@ -30,8 +30,7 @@ @@ -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 @@ -119,5 +118,3 @@ namespace Net
QString m_password;
};
}
#endif // SMTP_H

5
src/base/preferences.h

@ -27,8 +27,7 @@ @@ -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: @@ -403,5 +402,3 @@ public slots:
void apply();
};
#endif // PREFERENCES_H

5
src/base/profile.h

@ -27,8 +27,7 @@ @@ -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: @@ -82,5 +81,3 @@ private:
};
QString specialFolderLocation(SpecialFolder folder);
#endif // QBT_PROFILE_H

5
src/base/profile_p.h

@ -27,8 +27,7 @@ @@ -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 @@ -132,5 +131,3 @@ namespace Private
QDir m_baseDir;
};
}
#endif // QBT_PROFILE_P_H

5
src/base/scanfoldersmodel.h

@ -26,8 +26,7 @@ @@ -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: @@ -110,5 +109,3 @@ private:
QList<PathData*> m_pathList;
FileSystemWatcher *m_fsWatcher;
};
#endif // SCANFOLDERSMODEL_H

5
src/base/settingsstorage.h

@ -27,8 +27,7 @@ @@ -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: @@ -61,5 +60,3 @@ private:
QTimer m_timer;
mutable QReadWriteLock m_lock;
};
#endif // SETTINGSSTORAGE_H

5
src/base/settingvalue.h

@ -26,8 +26,7 @@ @@ -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: @@ -114,5 +113,3 @@ private:
const QString m_keyName;
T m_value;
};
#endif // SETTINGVALUE_H

5
src/base/torrentfilter.h

@ -26,8 +26,7 @@ @@ -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: @@ -102,5 +101,3 @@ private:
QString m_tag;
InfoHashSet m_hashSet;
};
#endif // TORRENTFILTER_H

5
src/base/tristatebool.h

@ -26,8 +26,7 @@ @@ -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) @@ -68,5 +67,3 @@ constexpr bool operator!=(const TriStateBool &left, const TriStateBool &right)
{
return !(left == right);
}
#endif // TRISTATEBOOL_H

5
src/base/types.h

@ -26,8 +26,7 @@ @@ -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 @@ -42,5 +41,3 @@ enum class ShutdownDialogAction
};
typedef QMap<QString, QString> QStringMap;
#endif // TYPES_H

5
src/base/utils/fs.h

@ -26,8 +26,7 @@ @@ -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 @@ -79,5 +78,3 @@ namespace Utils
#endif
}
}
#endif // UTILS_FS_H

5
src/base/utils/gzip.h

@ -27,8 +27,7 @@ @@ -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 @@ -40,5 +39,3 @@ namespace Utils
QByteArray decompress(const QByteArray &data, bool *ok = nullptr);
}
}
#endif // UTILS_GZIP_H

5
src/base/utils/misc.h

@ -26,8 +26,7 @@ @@ -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 @@ -108,5 +107,3 @@ namespace Utils
#endif // Q_OS_WIN
}
}
#endif // UTILS_MISC_H

5
src/base/utils/net.h

@ -26,8 +26,7 @@ @@ -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 @@ -57,5 +56,3 @@ namespace Utils
bool isSSLKeyValid(const QByteArray &data);
}
}
#endif // BASE_UTILS_NET_H

5
src/base/utils/random.h

@ -26,8 +26,7 @@ @@ -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 @@ -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

5
src/base/utils/string.h

@ -27,8 +27,7 @@ @@ -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 @@ -74,5 +73,3 @@ namespace Utils
QString join(const QVector<QStringRef> &strings, const QString &separator);
}
}
#endif // UTILS_STRING_H

5
src/base/utils/version.h

@ -26,8 +26,7 @@ @@ -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 @@ -210,5 +209,3 @@ namespace Utils
return !(left < right);
}
}
#endif // QBITTORRENT_UTILS_VERSION_H

5
src/gui/aboutdialog.h

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

5
src/gui/addnewtorrentdialog.h

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

5
src/gui/advancedsettings.h

@ -26,8 +26,7 @@ @@ -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: @@ -86,5 +85,3 @@ private:
QComboBox m_comboBoxOSMemoryPriority;
#endif
};
#endif // ADVANCEDSETTINGS_H

5
src/gui/autoexpandabledialog.h

@ -26,8 +26,7 @@ @@ -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: @@ -57,5 +56,3 @@ protected:
private:
Ui::AutoExpandableDialog *m_ui;
};
#endif // AUTOEXPANDABLEDIALOG_H

5
src/gui/banlistoptionsdialog.h

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

5
src/gui/categoryfiltermodel.h

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

5
src/gui/categoryfilterproxymodel.h

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

5
src/gui/cookiesdialog.h

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

5
src/gui/cookiesmodel.h

@ -26,8 +26,7 @@ @@ -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: @@ -70,5 +69,3 @@ public:
private:
mutable QList<QNetworkCookie> m_cookies;
};
#endif // COOKIESMODEL_H

5
src/gui/deletionconfirmationdialog.h

@ -26,8 +26,7 @@ @@ -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: @@ -55,5 +54,3 @@ private slots:
private:
Ui::DeletionConfirmationDialog *m_ui;
};
#endif // DELETIONCONFIRMATIONDIALOG_H

5
src/gui/downloadfromurldialog.h

@ -26,8 +26,7 @@ @@ -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: @@ -54,5 +53,3 @@ private slots:
private:
Ui::DownloadFromURLDialog *m_ui;
};
#endif // DOWNLOADFROMURL_H

5
src/gui/executionlogwidget.h

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

5
src/gui/fspathedit.h

@ -26,8 +26,7 @@ @@ -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: @@ -149,5 +148,3 @@ private:
QString editWidgetText() const override;
void setEditWidgetText(const QString &text) override;
};
#endif // QBT_FSPATHEDIT_H

5
src/gui/fspathedit_p.h

@ -26,8 +26,7 @@ @@ -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 @@ -157,5 +156,3 @@ namespace Private
QString text() const;
};
}
#endif // QBT_GUI_FSPATHEDIT_P_H

5
src/gui/hidabletabwidget.h

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

5
src/gui/ipsubnetwhitelistoptionsdialog.h

@ -26,8 +26,7 @@ @@ -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: @@ -60,5 +59,3 @@ private:
QSortFilterProxyModel *m_sortFilter;
bool m_modified;
};
#endif // OPTIONS_IPSUBNETWHITELIST_H

5
src/gui/lineedit.h

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

5
src/gui/macutilities.h

@ -26,8 +26,7 @@ @@ -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 @@ -44,5 +43,3 @@ namespace MacUtils
void displayNotification(const QString &title, const QString &message);
void openFiles(const QSet<QString> &pathsList);
}
#endif // MACUTILITIES_H

5
src/gui/mainwindow.h

@ -26,8 +26,7 @@ @@ -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: @@ -263,5 +262,3 @@ private:
bool m_hasPython;
QMenu *m_toolbarMenu;
};
#endif // MAINWINDOW_H

5
src/gui/optionsdialog.h

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

5
src/gui/powermanagement/powermanagement.h

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

5
src/gui/powermanagement/powermanagement_x11.h

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

5
src/gui/previewlistdelegate.h

@ -26,8 +26,7 @@ @@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef PREVIEWLISTDELEGATE_H
#define PREVIEWLISTDELEGATE_H
#pragma once
#include <QItemDelegate>
@ -43,5 +42,3 @@ private: @@ -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

5
src/gui/previewselectdialog.h

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

5
src/gui/programupdater.h

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

5
src/gui/properties/downloadedpiecesbar.h

@ -26,8 +26,7 @@ @@ -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: @@ -63,5 +62,3 @@ private:
QBitArray m_pieces;
QBitArray m_downloadedPieces;
};
#endif // DOWNLOADEDPIECESBAR_H

5
src/gui/properties/peerlistsortmodel.h

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

5
src/gui/properties/peerlistwidget.h

@ -26,8 +26,7 @@ @@ -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: @@ -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

5
src/gui/properties/peersadditiondialog.h

@ -26,8 +26,7 @@ @@ -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: @@ -56,5 +55,3 @@ private:
Ui::PeersAdditionDialog *m_ui;
QVector<BitTorrent::PeerAddress> m_peersList;
};
#endif // PEERADDITION_H

5
src/gui/properties/pieceavailabilitybar.h

@ -26,8 +26,7 @@ @@ -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: @@ -56,5 +55,3 @@ private:
// scale int vector to float vector
QVector<float> intToFloatVector(const QVector<int> &vecin, int reqSize);
};
#endif // PIECEAVAILABILITYBAR_H

5
src/gui/properties/piecesbar.h

@ -27,8 +27,7 @@ @@ -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: @@ -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

5
src/gui/properties/propertieswidget.h

@ -26,8 +26,7 @@ @@ -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: @@ -125,5 +124,3 @@ private:
LineEdit *m_contentFilterLine;
int m_handleWidth;
};
#endif // PROPERTIESWIDGET_H

5
src/gui/properties/proplistdelegate.h

@ -26,8 +26,7 @@ @@ -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: @@ -71,5 +70,3 @@ private:
PropertiesWidget *m_properties;
};
#endif // PROPLISTDELEGATE_H

5
src/gui/properties/proptabbar.h

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

5
src/gui/properties/speedplotview.h

@ -26,8 +26,7 @@ @@ -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: @@ -131,5 +130,3 @@ private:
TimePeriod m_period;
int m_viewablePointsCount;
};
#endif // SPEEDPLOTVIEW_H

5
src/gui/properties/speedwidget.h

@ -26,8 +26,7 @@ @@ -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: @@ -80,5 +79,3 @@ private:
QMenu *m_graphsMenu;
QList<QAction *> m_graphsMenuActions;
};
#endif // SPEEDWIDGET_H

5
src/gui/properties/trackerlistwidget.h

@ -26,8 +26,7 @@ @@ -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: @@ -95,5 +94,3 @@ private:
QTreeWidgetItem *m_PEXItem;
QTreeWidgetItem *m_LSDItem;
};
#endif // TRACKERLIST_H

5
src/gui/properties/trackersadditiondialog.h

@ -26,8 +26,7 @@ @@ -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: @@ -68,5 +67,3 @@ private:
Ui::TrackersAdditionDialog *m_ui;
BitTorrent::TorrentHandle *const m_torrent;
};
#endif // TRACKERSADDITION_H

5
src/gui/raisedmessagebox.h

@ -26,8 +26,7 @@ @@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef RAISEDMESSAGEBOX_H
#define RAISEDMESSAGEBOX_H
#pragma once
#include <QMessageBox>
@ -52,5 +51,3 @@ private: @@ -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

5
src/gui/rss/articlelistwidget.h

@ -26,8 +26,7 @@ @@ -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: @@ -63,5 +62,3 @@ private:
bool m_unreadOnly = false;
QHash<RSS::Article *, QListWidgetItem *> m_rssArticleToListItemMapping;
};
#endif // ARTICLELISTWIDGET_H

5
src/gui/rss/automatedrssdownloader.h

@ -27,8 +27,7 @@ @@ -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: @@ -106,5 +105,3 @@ private:
QHash<QString, QListWidgetItem *> m_itemsByRuleName;
QRegularExpression *m_episodeRegex;
};
#endif // AUTOMATEDRSSDOWNLOADER_H

5
src/gui/rss/feedlistwidget.h

@ -27,8 +27,7 @@ @@ -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: @@ -73,5 +72,3 @@ private:
QHash<RSS::Item *, QTreeWidgetItem *> m_rssToTreeItemMapping;
QTreeWidgetItem *m_unreadStickyItem;
};
#endif // FEEDLISTWIDGET_H

5
src/gui/rss/htmlbrowser.h

@ -26,8 +26,7 @@ @@ -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: @@ -54,5 +53,3 @@ protected:
protected slots:
void resourceLoaded(QNetworkReply *reply);
};
#endif // HTMLBROWSER_H

5
src/gui/rss/rsswidget.h

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

5
src/gui/scanfoldersdelegate.h

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

5
src/gui/search/pluginselectdialog.h

@ -27,8 +27,7 @@ @@ -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: @@ -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

Loading…
Cancel
Save