mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Inherit from QStyledItemDelegate for address fields in hosts table
This commit is contained in:
parent
11264e6c08
commit
f67611cbe6
|
@ -39,7 +39,7 @@ QValidator::State IPValidator::validate(QString& input, int& pos) const
|
|||
}
|
||||
|
||||
IPItemDelegate::IPItemDelegate(QObject* parent)
|
||||
: QItemDelegate(parent)
|
||||
: QStyledItemDelegate(parent)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue