mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-17 07:39:58 +00:00
massive refactoring
This commit is contained in:
@ -32,8 +32,8 @@ class AWJsonFormatter : public AWAbstractFormatter
|
||||
Q_PROPERTY(QString path READ path WRITE setPath)
|
||||
|
||||
public:
|
||||
explicit AWJsonFormatter(QWidget *parent,
|
||||
const QString &filePath = QString());
|
||||
explicit AWJsonFormatter(QWidget *_parent = nullptr,
|
||||
const QString &_filePath = "");
|
||||
virtual ~AWJsonFormatter();
|
||||
QString convert(const QVariant &_value) const;
|
||||
AWJsonFormatter *copy(const QString &_fileName, const int _number);
|
||||
@ -43,14 +43,15 @@ public:
|
||||
|
||||
public slots:
|
||||
void readConfiguration();
|
||||
int showConfiguration(const QVariant &args = QVariant());
|
||||
int showConfiguration(const QVariant &_args);
|
||||
void writeConfiguration() const;
|
||||
|
||||
private:
|
||||
Ui::AWJsonFormatter *ui = nullptr;
|
||||
QVariant getFromJson(const QVariant &value, const QVariant &element) const;
|
||||
QVariant getFromList(const QVariant &value, const int index) const;
|
||||
QVariant getFromMap(const QVariant &value, const QString &key) const;
|
||||
QVariant getFromJson(const QVariant &_value,
|
||||
const QVariant &_element) const;
|
||||
QVariant getFromList(const QVariant &_value, const int _index) const;
|
||||
QVariant getFromMap(const QVariant &_value, const QString &_key) const;
|
||||
void initPath();
|
||||
void translate();
|
||||
// properties
|
||||
|
Reference in New Issue
Block a user