Tidy up names of some item delegates

This commit is contained in:
Bill Somerville 2018-11-12 02:03:26 +00:00
parent 38bfde2dc5
commit 3634be1e80
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#ifndef DATE_TIME_AS_SECS_SINCE_EPOCH_ITEM_DELEGATE_HPP_
#define DATE_TIME_AS_SECS_SINCE_EPOCH_ITEM_DELEGATE_HPP_
#ifndef DATE_TIME_AS_SECS_SINCE_EPOCH_DELEGATE_HPP_
#define DATE_TIME_AS_SECS_SINCE_EPOCH_DELEGATE_HPP_
#include <QStyledItemDelegate>
#include <QVariant>
@ -7,11 +7,11 @@
#include <QAbstractItemModel>
#include <QDateTimeEdit>
class DateTimeAsSecsSinceEpochItemDelegate final
class DateTimeAsSecsSinceEpochDelegate final
: public QStyledItemDelegate
{
public:
DateTimeAsSecsSinceEpochItemDelegate (QObject * parent = nullptr)
DateTimeAsSecsSinceEpochDelegate (QObject * parent = nullptr)
: QStyledItemDelegate {parent}
{
}

View File

@ -37,5 +37,6 @@ QWidget * ForeignKeyDelegate::createEditor (QWidget * parent
editor->setFrame (false);
candidate_key_filter_->set_active_key (index);
editor->setModel (candidate_key_filter_.data ());
editor->setSizeAdjustPolicy (QComboBox::AdjustToContents);
return editor;
}