Buttons functionality

This commit is contained in:
Alexey 2025-06-30 16:50:51 +03:00
commit 6b2dacb28f
4 changed files with 50 additions and 0 deletions

View file

@ -66,6 +66,15 @@ const QList<Line> &GridPreview::getLines() const
return lines;
}
void GridPreview::clear()
{
lines.clear();
width = 5;
height = 5;
emit updatedContents();
}
const Line &GridPreview::getLine(int index) const
{
return lines.at(index);