refactoring qad widgets part 2
c++ cast, nullptr, forward declaration, agregate ui, connect to member functions, order and clear includes
This commit is contained in:
@@ -21,29 +21,30 @@
|
||||
#define PROPERTYSTORAGEEDITOR_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "propertystorage.h"
|
||||
#include "qad_widgets_export.h"
|
||||
|
||||
|
||||
class PropertyStorage;
|
||||
|
||||
|
||||
class QAD_WIDGETS_EXPORT PropertyStorageEditor: public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit PropertyStorageEditor(QWidget * parent = 0);
|
||||
~PropertyStorageEditor();
|
||||
explicit PropertyStorageEditor(QWidget * parent = nullptr);
|
||||
~PropertyStorageEditor() override;
|
||||
|
||||
void clear();
|
||||
bool isEmpty() const;
|
||||
void setStorage(PropertyStorage * s);
|
||||
void applyProperties();
|
||||
|
||||
private:
|
||||
QList<QWidget*> _widgets;
|
||||
PropertyStorage * storage;
|
||||
|
||||
signals:
|
||||
void resetStorageRequest(PropertyStorage * );
|
||||
void changed();
|
||||
|
||||
private:
|
||||
QList<QWidget*> _widgets;
|
||||
PropertyStorage * storage;
|
||||
};
|
||||
|
||||
#endif // PROPERTYSTORAGEEDITOR_H
|
||||
|
||||
Reference in New Issue
Block a user