~sachinr/xpad/xpad-qt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "padgroup.h"
#include<pad.h>

PadGroup::PadGroup()
{
}

void PadGroup::CreateNewPad()
{
    auto pad = new Pad();
    pads.push_back(pad);
}

const list<Pad*>& PadGroup::GetPads()
{
    return pads;
}

PadGroup::~PadGroup()
{
    for(auto pad : pads)
    {
        delete pad;
    }
}