bunch of stuff. very basic drag/drop now working
This commit is contained in:
28
fullsizelayout.hpp
Normal file
28
fullsizelayout.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef FULLSIZELAYOUT_HPP
|
||||
#define FULLSIZELAYOUT_HPP
|
||||
|
||||
#include <QLayout>
|
||||
|
||||
class FullSizeLayout : public QLayout
|
||||
{
|
||||
public:
|
||||
FullSizeLayout();
|
||||
~FullSizeLayout();
|
||||
void addItem(QLayoutItem *item) override;
|
||||
int horizontalSpacing() const;
|
||||
int verticalSpacing() const;
|
||||
Qt::Orientations expandingDirections() const override;
|
||||
bool hasHeightForWidth() const override;
|
||||
int heightForWidth(int) const override;
|
||||
int count() const override;
|
||||
QLayoutItem *itemAt(int index) const override;
|
||||
QSize minimumSize() const override;
|
||||
void setGeometry(const QRect &rect) override;
|
||||
QSize sizeHint() const override;
|
||||
QLayoutItem *takeAt(int index) override;
|
||||
|
||||
private:
|
||||
QList<QLayoutItem*> itemList;
|
||||
};
|
||||
|
||||
#endif // FULLSIZELAYOUT_HPP
|
||||
Reference in New Issue
Block a user