DEV9: Inherit from QStyledItemDelegate for address fields in hosts table

This commit is contained in:
TheLastRar 2024-05-05 18:14:55 +01:00 committed by Connor McLaughlin
parent 11264e6c08
commit f67611cbe6
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ QValidator::State IPValidator::validate(QString& input, int& pos) const
}
IPItemDelegate::IPItemDelegate(QObject* parent)
: QItemDelegate(parent)
: QStyledItemDelegate(parent)
{
}

View File

@ -4,7 +4,7 @@
#pragma once
#include <QtGui/QValidator>
#include <QtWidgets/QItemDelegate>
#include <QtWidgets/QStyledItemDelegate>
struct HostEntryUi
{
@ -29,7 +29,7 @@ private:
bool m_allowEmpty;
};
class IPItemDelegate : public QItemDelegate
class IPItemDelegate : public QStyledItemDelegate
{
Q_OBJECT