mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-16 15:19:58 +00:00
system source, some code improvements
This commit is contained in:
@ -30,29 +30,29 @@ class AWFormatterHelper : public AbstractExtItemAggregator, public AWAbstractPai
|
||||
|
||||
public:
|
||||
explicit AWFormatterHelper(QWidget *_parent = nullptr);
|
||||
virtual ~AWFormatterHelper();
|
||||
~AWFormatterHelper() override;
|
||||
// read-write methods
|
||||
void initItems();
|
||||
void initItems() override;
|
||||
// methods
|
||||
QString convert(const QVariant &_value, const QString &_name) const;
|
||||
QStringList definedFormatters() const;
|
||||
QList<AbstractExtItem *> items() const;
|
||||
QList<AbstractExtItem *> items() const override;
|
||||
// configuration related
|
||||
virtual void editPairs();
|
||||
virtual QStringList leftKeys();
|
||||
virtual QStringList rightKeys();
|
||||
void editPairs() override;
|
||||
QStringList leftKeys() override;
|
||||
QStringList rightKeys() override;
|
||||
|
||||
public slots:
|
||||
void editItems();
|
||||
|
||||
private:
|
||||
// methods
|
||||
AWAbstractFormatter::FormatterClass defineFormatterClass(const QString &_stringType) const;
|
||||
static AWAbstractFormatter::FormatterClass defineFormatterClass(const QString &_stringType);
|
||||
void initFormatters();
|
||||
QPair<QString, AWAbstractFormatter::FormatterClass>
|
||||
readMetadata(const QString &_filePath) const;
|
||||
// parent methods
|
||||
void doCreateItem();
|
||||
void doCreateItem() override;
|
||||
// properties
|
||||
QHash<QString, AWAbstractFormatter *> m_formatters;
|
||||
QHash<QString, AWAbstractFormatter *> m_formattersClasses;
|
||||
|
Reference in New Issue
Block a user