Qt: Remove more Q_OBJECT macro calls.
This commit is contained in:
parent
f26ef902b2
commit
f9d3b9d51a
|
@ -19,8 +19,6 @@ class ConversationHashTablesDialog;
|
|||
|
||||
class ConversationHashTablesDialog : public GeometryStateDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ConversationHashTablesDialog(QWidget *parent = 0);
|
||||
~ConversationHashTablesDialog();
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
class GeometryStateDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
// As discussed in change 7072, QDialogs have different minimize and "on
|
||||
|
|
|
@ -61,7 +61,8 @@ WiresharkPreference * PreferenceManager::getPreference(PrefsItem * pref)
|
|||
return Q_NULLPTR;
|
||||
|
||||
/* All actions are parented with this manager, to clear the objects together with the manager */
|
||||
WiresharkPreference * wspref = qobject_cast<WiresharkPreference *>(PreferenceManager::factories()[key]->create(this));
|
||||
// WiresharkPreference * wspref = qobject_cast<WiresharkPreference *>(PreferenceManager::factories()[key]->create(this));
|
||||
WiresharkPreference * wspref = PreferenceManager::factories()[key]->create(this);
|
||||
if (wspref)
|
||||
wspref->setPrefsItem(pref);
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
class WiresharkPreference : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit Q_INVOKABLE WiresharkPreference(QObject * parent = Q_NULLPTR);
|
||||
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
|
||||
class AStringListListModel : public QAbstractTableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AStringListListModel(QObject * parent = Q_NULLPTR);
|
||||
virtual ~AStringListListModel();
|
||||
|
@ -93,7 +91,6 @@ private:
|
|||
|
||||
class AStringListListUrlProxyModel : public QIdentityProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AStringListListUrlProxyModel(QObject * parent = Q_NULLPTR);
|
||||
|
||||
|
|
|
@ -44,8 +44,6 @@ public:
|
|||
|
||||
class ColoringRulesModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ColoringRulesModel(QColor defaultForeground, QColor defaultBackground, QObject *parent);
|
||||
virtual ~ColoringRulesModel();
|
||||
|
|
|
@ -32,7 +32,6 @@ private:
|
|||
|
||||
class ColumnTypeDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ColumnTypeDelegate(QObject * parent = Q_NULLPTR);
|
||||
|
||||
|
@ -49,8 +48,6 @@ public:
|
|||
|
||||
class ColumnListModel : public QAbstractTableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ColumnListModel(QObject * parent = Q_NULLPTR);
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
class CredentialsModel : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CredentialsModel(QObject *parent);
|
||||
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const ;
|
||||
|
|
|
@ -29,8 +29,6 @@ typedef struct _packet_proto_data_t {
|
|||
|
||||
class DecodeAsDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DecodeAsDelegate(QObject *parent = 0, capture_file *cf = NULL);
|
||||
|
||||
|
|
|
@ -34,8 +34,6 @@ protected:
|
|||
|
||||
class DissectorTablesModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DissectorTablesModel(QObject * parent = Q_NULLPTR);
|
||||
virtual ~DissectorTablesModel();
|
||||
|
@ -62,7 +60,6 @@ private:
|
|||
|
||||
class DissectorTablesProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
explicit DissectorTablesProxyModel(QObject * parent = Q_NULLPTR);
|
||||
|
|
|
@ -54,8 +54,6 @@ protected:
|
|||
|
||||
class EnabledProtocolsModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit EnabledProtocolsModel(QObject * parent = Q_NULLPTR);
|
||||
virtual ~EnabledProtocolsModel();
|
||||
|
|
|
@ -65,8 +65,6 @@ private:
|
|||
|
||||
class ExpertInfoModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ExpertInfoModel(CaptureFile& capture_file, QObject *parent = 0);
|
||||
virtual ~ExpertInfoModel();
|
||||
|
|
|
@ -19,8 +19,6 @@ class ExpertPacketItem;
|
|||
|
||||
class ExpertInfoProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ExpertInfoProxyModel(QObject *parent = 0);
|
||||
|
||||
|
|
|
@ -26,8 +26,6 @@ typedef struct export_object_list_gui_t {
|
|||
|
||||
class ExportObjectModel : public QAbstractTableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ExportObjectModel(register_eo_t* eo, QObject *parent);
|
||||
|
||||
|
@ -69,7 +67,6 @@ private:
|
|||
|
||||
class ExportObjectProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
explicit ExportObjectProxyModel(QObject * parent = Q_NULLPTR);
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
|
||||
class FilesetEntryModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit FilesetEntryModel(QObject * parent = 0);
|
||||
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
|
||||
class FilterListModel : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum FilterListType {
|
||||
Display,
|
||||
|
|
|
@ -18,8 +18,6 @@
|
|||
|
||||
class InfoProxyModel : public QIdentityProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit InfoProxyModel(QObject * parent = 0);
|
||||
~InfoProxyModel();
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
|
||||
class InterfaceTreeCacheModel : public QIdentityProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit InterfaceTreeCacheModel(QObject *parent);
|
||||
~InterfaceTreeCacheModel();
|
||||
|
|
|
@ -54,7 +54,7 @@ enum InterfaceTreeColumns
|
|||
|
||||
class InterfaceTreeModel : public QAbstractTableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
//Q_OBJECT
|
||||
public:
|
||||
InterfaceTreeModel(QObject *parent);
|
||||
~InterfaceTreeModel();
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
|
||||
class PercentBarDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PercentBarDelegate(QWidget *parent = 0) : QStyledItemDelegate(parent) { }
|
||||
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
|
||||
class AdvancedPrefDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
AdvancedPrefDelegate(QObject *parent = 0);
|
||||
|
||||
|
|
|
@ -49,8 +49,6 @@ private:
|
|||
|
||||
class PrefsModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PrefsModel(QObject * parent = Q_NULLPTR);
|
||||
virtual ~PrefsModel();
|
||||
|
@ -93,7 +91,6 @@ private:
|
|||
|
||||
class AdvancedPrefsModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
explicit AdvancedPrefsModel(QObject * parent = Q_NULLPTR);
|
||||
|
@ -131,7 +128,6 @@ private:
|
|||
|
||||
class ModulePrefsModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
explicit ModulePrefsModel(QObject * parent = Q_NULLPTR);
|
||||
|
|
|
@ -24,7 +24,6 @@ Q_DECLARE_LOGGING_CATEGORY(profileLogger)
|
|||
|
||||
class ProfileSortModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ProfileSortModel(QObject *parent = Q_NULLPTR);
|
||||
|
||||
|
|
|
@ -46,9 +46,6 @@ private:
|
|||
void drawArrow(QPainter *painter, const QPoint tail, const QPoint head, int head_size) const;
|
||||
void drawChevrons(QPainter *painter, const QPoint tail, const QPoint head, int head_size) const;
|
||||
void drawCheckMark(QPainter *painter, const QRect bbox) const;
|
||||
signals:
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // RELATED_PACKET_DELEGATE_H
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
|
||||
class EthernetAddressModel : public AStringListListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
EthernetAddressModel(QObject * parent = Q_NULLPTR);
|
||||
|
||||
|
@ -32,8 +30,6 @@ protected:
|
|||
|
||||
class PortsModel : public AStringListListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PortsModel(QObject * parent = Q_NULLPTR);
|
||||
|
||||
|
|
|
@ -41,8 +41,6 @@ private:
|
|||
|
||||
class SupportedProtocolsModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SupportedProtocolsModel(QObject * parent = Q_NULLPTR);
|
||||
virtual ~SupportedProtocolsModel();
|
||||
|
@ -77,7 +75,6 @@ private:
|
|||
|
||||
class SupportedProtocolsProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
explicit SupportedProtocolsProxyModel(QObject * parent = Q_NULLPTR);
|
||||
|
|
|
@ -42,8 +42,6 @@ Q_DECLARE_METATYPE(timeline_span)
|
|||
|
||||
class TimelineDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TimelineDelegate(QWidget *parent = 0);
|
||||
|
||||
|
|
|
@ -19,8 +19,6 @@ class QRegExp;
|
|||
|
||||
class UrlLinkDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit UrlLinkDelegate(QObject *parent = Q_NULLPTR);
|
||||
~UrlLinkDelegate();
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
|
||||
class VoipCallsInfoModel : public QAbstractTableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
VoipCallsInfoModel(QObject *parent = 0);
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
||||
|
@ -61,8 +59,6 @@ private:
|
|||
|
||||
class VoipCallsInfoSortedModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
VoipCallsInfoSortedModel(QObject *parent = 0);
|
||||
|
||||
|
|
|
@ -16,8 +16,6 @@ class QComboBox;
|
|||
|
||||
class ScsiServiceResponseTimeDialog : public ServiceResponseTimeDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
ScsiServiceResponseTimeDialog(QWidget &parent, CaptureFile &cf, struct register_srt *srt, const QString filter);
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
class StockIconToolButton : public QToolButton
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit StockIconToolButton(QWidget * parent = 0, QString stock_icon_name = QString());
|
||||
|
||||
|
|
Loading…
Reference in New Issue