1
0
Fork 0
forked from blue/squawk

first prototype

This commit is contained in:
Blue 2020-04-18 02:17:47 +03:00
parent 494afcf2b5
commit 83a2e6af85
13 changed files with 365 additions and 244 deletions

View file

@ -30,7 +30,7 @@ class Reference : public Models::Item
{
Q_OBJECT
public:
Reference(Models::Item* original, Models::Item* parent);
Reference(Models::Item* original, Models::Item* parent = 0);
~Reference();
int columnCount() const override;
@ -44,9 +44,21 @@ public:
protected slots:
void toOfflineState() override;
private slots:
void onChildChanged(Models::Item* item, int row, int col);
void onChildIsAboutToBeInserted(Item* parent, int first, int last);
void onChildInserted();
void onChildIsAboutToBeRemoved(Item* parent, int first, int last);
void onChildRemoved();
void onChildIsAboutToBeMoved(Item* source, int first, int last, Item* destination, int newIndex);
void onChildMoved();
private:
Models::Item* original;
int ax;
int bx;
int cx;
bool c;
};
}