mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 18:32:27 -04:00
Tidy up names of some item delegates
This commit is contained in:
parent
38bfde2dc5
commit
3634be1e80
@ -1,5 +1,5 @@
|
|||||||
#ifndef 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_ITEM_DELEGATE_HPP_
|
#define DATE_TIME_AS_SECS_SINCE_EPOCH_DELEGATE_HPP_
|
||||||
|
|
||||||
#include <QStyledItemDelegate>
|
#include <QStyledItemDelegate>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
@ -7,11 +7,11 @@
|
|||||||
#include <QAbstractItemModel>
|
#include <QAbstractItemModel>
|
||||||
#include <QDateTimeEdit>
|
#include <QDateTimeEdit>
|
||||||
|
|
||||||
class DateTimeAsSecsSinceEpochItemDelegate final
|
class DateTimeAsSecsSinceEpochDelegate final
|
||||||
: public QStyledItemDelegate
|
: public QStyledItemDelegate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DateTimeAsSecsSinceEpochItemDelegate (QObject * parent = nullptr)
|
DateTimeAsSecsSinceEpochDelegate (QObject * parent = nullptr)
|
||||||
: QStyledItemDelegate {parent}
|
: QStyledItemDelegate {parent}
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -37,5 +37,6 @@ QWidget * ForeignKeyDelegate::createEditor (QWidget * parent
|
|||||||
editor->setFrame (false);
|
editor->setFrame (false);
|
||||||
candidate_key_filter_->set_active_key (index);
|
candidate_key_filter_->set_active_key (index);
|
||||||
editor->setModel (candidate_key_filter_.data ());
|
editor->setModel (candidate_key_filter_.data ());
|
||||||
|
editor->setSizeAdjustPolicy (QComboBox::AdjustToContents);
|
||||||
return editor;
|
return editor;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user