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