wip
This commit is contained in:
@@ -306,7 +306,7 @@ void Item::insertItem(Item *item, Location loc)
|
|||||||
container->insertItem(item, loc);
|
container->insertItem(item, loc);
|
||||||
}
|
}
|
||||||
|
|
||||||
root()->checkSanity();
|
(void) root()->checkSanity();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** static */
|
/** static */
|
||||||
@@ -2125,3 +2125,7 @@ bool ItemContainer::isHorizontal() const
|
|||||||
{
|
{
|
||||||
return m_orientation == Qt::Horizontal;
|
return m_orientation == Qt::Horizontal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GuestInterface::~GuestInterface()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|||||||
@@ -237,6 +237,7 @@ struct SizingInfo {
|
|||||||
class GuestInterface
|
class GuestInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~GuestInterface();
|
||||||
virtual void setLayoutItem(Item *) = 0;
|
virtual void setLayoutItem(Item *) = 0;
|
||||||
virtual QWidget *asWidget() = 0;
|
virtual QWidget *asWidget() = 0;
|
||||||
};
|
};
|
||||||
@@ -281,7 +282,7 @@ public:
|
|||||||
|
|
||||||
Qt::Orientation orientation() const;
|
Qt::Orientation orientation() const;
|
||||||
static int separatorThickness();
|
static int separatorThickness();
|
||||||
virtual bool checkSanity();
|
[[nodiscard]] virtual bool checkSanity();
|
||||||
void setParentContainer(ItemContainer *parent); // TODO: Make private
|
void setParentContainer(ItemContainer *parent); // TODO: Make private
|
||||||
ItemContainer *parentContainer() const;
|
ItemContainer *parentContainer() const;
|
||||||
void setPos(QPoint); // TODO: Make private
|
void setPos(QPoint); // TODO: Make private
|
||||||
@@ -387,7 +388,7 @@ public:
|
|||||||
explicit ItemContainer(QWidget *hostWidget, ItemContainer *parent);
|
explicit ItemContainer(QWidget *hostWidget, ItemContainer *parent);
|
||||||
explicit ItemContainer(QWidget *parent);
|
explicit ItemContainer(QWidget *parent);
|
||||||
void insertItem(Item *item, int index, bool growItem = true);
|
void insertItem(Item *item, int index, bool growItem = true);
|
||||||
bool checkSanity() override;
|
[[nodiscard]] bool checkSanity() override;
|
||||||
void scheduleCheckSanity() const;
|
void scheduleCheckSanity() const;
|
||||||
bool hasOrientation() const;
|
bool hasOrientation() const;
|
||||||
int numChildren() const;
|
int numChildren() const;
|
||||||
|
|||||||
@@ -876,7 +876,7 @@ void TestMultiSplitter::tst_containerGetsHidden()
|
|||||||
QVERIFY(root->checkSanity());
|
QVERIFY(root->checkSanity());
|
||||||
|
|
||||||
item3->turnIntoPlaceholder();
|
item3->turnIntoPlaceholder();
|
||||||
root->checkSanity();
|
QVERIFY(root->checkSanity());
|
||||||
}
|
}
|
||||||
|
|
||||||
QTEST_MAIN(TestMultiSplitter)
|
QTEST_MAIN(TestMultiSplitter)
|
||||||
|
|||||||
Reference in New Issue
Block a user