Collection of minor code improvements.
Program should still behave exactly the same.
This commit is contained in:
parent
38ae5f50e4
commit
d4d8316917
6 changed files with 12 additions and 16 deletions
|
|
@ -42,8 +42,7 @@ QSize IconColumnDelegate::sizeHint(const QStyleOptionViewItem &,
|
|||
void IconColumnDelegate::clearCache()
|
||||
{
|
||||
for (auto &e : m_Icons)
|
||||
delete e.
|
||||
second;
|
||||
delete e.second;
|
||||
m_Icons.clear();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "Pgsql_oids.h"
|
||||
#include "ResultTableModelUtil.h"
|
||||
#include "CustomDataRole.h"
|
||||
|
||||
PgLabItemDelegate::PgLabItemDelegate(QObject *parent)
|
||||
: QStyledItemDelegate(parent)
|
||||
|
|
@ -81,7 +82,7 @@ void PgLabItemDelegate::initStyleOption(QStyleOptionViewItem *option,
|
|||
// }
|
||||
|
||||
Oid oid = InvalidOid;
|
||||
value = index.data(Qt::UserRole); // get OID
|
||||
value = index.data(CustomDataTypeRole); // get OID
|
||||
if (value.isValid())
|
||||
oid = value.toUInt(); //getType(index.column());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue