Use #pragma once instead of include guards

This commit is contained in:
FranciscoPombal
2020-12-10 17:56:37 +00:00
committed by sledgehammer999
parent 0b42425db5
commit fdc64d9b38
122 changed files with 122 additions and 488 deletions

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

View File

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

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef SEARCHSORTMODEL_H
#define SEARCHSORTMODEL_H
#pragma once
#include <QSortFilterProxyModel>
#include <QStringList>
@@ -96,5 +95,3 @@ private:
int m_minLeeches, m_maxLeeches;
qint64 m_minSize, m_maxSize;
};
#endif // SEARCHSORTMODEL_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef SHUTDOWNCONFIRMDIALOG_H
#define SHUTDOWNCONFIRMDIALOG_H
#pragma once
#include <QDialog>
#include <QTimer>
@@ -68,5 +67,3 @@ private:
ShutdownDialogAction m_action;
QString m_msg;
};
#endif // SHUTDOWNCONFIRMDIALOG_H

View File

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

View File

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

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef STATUSBAR_H
#define STATUSBAR_H
#pragma once
#include <QStatusBar>
@@ -72,5 +71,3 @@ private:
QPushButton *m_connecStatusLblIcon;
QPushButton *m_altSpeedsBtn;
};
#endif // STATUSBAR_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TAGFILTERMODEL_H
#define TAGFILTERMODEL_H
#pragma once
#include <QAbstractListModel>
#include <QtContainerFwd>
@@ -83,5 +82,3 @@ private:
QList<TagModelItem> m_tagItems; // Index corresponds to its row
};
#endif // TAGFILTERMODEL_H

View File

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

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TAGFILTERWIDGET_H
#define TAGFILTERWIDGET_H
#pragma once
#include <QTreeView>
@@ -60,5 +59,3 @@ private:
void rowsInserted(const QModelIndex &parent, int start, int end) override;
QString askTagName();
};
#endif // TAGFILTERWIDGET_H

View File

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

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TORRENTCONTENTMODEL_H
#define TORRENTCONTENTMODEL_H
#pragma once
#include <QAbstractItemModel>
#include <QVector>
@@ -89,5 +88,3 @@ private:
QVector<TorrentContentModelFile *> m_filesIndex;
QFileIconProvider *m_fileIconProvider;
};
#endif // TORRENTCONTENTMODEL_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TORRENTCONTENTMODELFILE_H
#define TORRENTCONTENTMODELFILE_H
#pragma once
#include "torrentcontentmodelitem.h"
@@ -51,5 +50,3 @@ public:
private:
int m_fileIndex;
};
#endif // TORRENTCONTENTMODELFILE_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TORRENTCONTENTMODELFOLDER_H
#define TORRENTCONTENTMODELFOLDER_H
#pragma once
#include "torrentcontentmodelitem.h"
@@ -66,5 +65,3 @@ public:
private:
QVector<TorrentContentModelItem*> m_childItems;
};
#endif // TORRENTCONTENTMODELFOLDER_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TORRENTCONTENTMODELITEM_H
#define TORRENTCONTENTMODELITEM_H
#pragma once
#include <QCoreApplication>
#include <QVector>
@@ -96,5 +95,3 @@ protected:
qreal m_progress;
qreal m_availability;
};
#endif // TORRENTCONTENTMODELITEM_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TORRENTCONTENTTREEVIEW_H
#define TORRENTCONTENTTREEVIEW_H
#pragma once
#include <QTreeView>
@@ -51,5 +50,3 @@ public:
private:
QModelIndex currentNameCell();
};
#endif // TORRENTCONTENTTREEVIEW_H

View File

@@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef TORRENTCREATORDIALOG_H
#define TORRENTCREATORDIALOG_H
#pragma once
#include <libtorrent/version.hpp>
@@ -97,5 +96,3 @@ private:
CachedSettingValue<QString> m_storeLastSavePath;
CachedSettingValue<QString> m_storeSource;
};
#endif // TORRENTCREATORDIALOG_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TRANSFERLISTFILTERSWIDGET_H
#define TRANSFERLISTFILTERSWIDGET_H
#pragma once
#include <QFrame>
#include <QListWidget>
@@ -176,5 +175,3 @@ private:
CategoryFilterWidget *m_categoryFilterWidget;
TagFilterWidget *m_tagFilterWidget;
};
#endif // TRANSFERLISTFILTERSWIDGET_H

View File

@@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef TRANSFERLISTMODEL_H
#define TRANSFERLISTMODEL_H
#pragma once
#include <QAbstractListModel>
#include <QColor>
@@ -128,5 +127,3 @@ private:
HideZeroValuesMode m_hideZeroValuesMode = HideZeroValuesMode::Never;
};
#endif // TRANSFERLISTMODEL_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef TRANSFERLISTWIDGET_H
#define TRANSFERLISTWIDGET_H
#pragma once
#include <functional>
#include <QtContainerFwd>
@@ -129,5 +128,3 @@ private:
TransferListSortModel *m_sortFilterModel;
MainWindow *m_mainWindow;
};
#endif // TRANSFERLISTWIDGET_H

View File

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

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef UTILS_GUI_H
#define UTILS_GUI_H
#pragma once
#include <QSize>
@@ -62,5 +61,3 @@ namespace Utils
void openFolderSelect(const QString &absolutePath);
}
}
#endif // UTILS_GUI_H