Esempio n. 1
0
bool FilterTree::acceptsCard(const CardInfo *info) const
{
    QList<LogicMap *>::const_iterator i;

    for (i = childNodes.constBegin(); i != childNodes.constEnd(); i++)
        if ((*i)->isEnabled() && !testAttr(info, *i))
            return false;

    return true;
}
Esempio n. 2
0
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent)
{
    setupUi(this);
    ::CoInitialize(NULL);
    ::CoInitializeSecurity(NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_NONE,
                           RPC_C_IMP_LEVEL_DELEGATE, NULL, 0, NULL);

    ldsmnTypeModel = new TypeLoodsmanModel();    
    ldsmnLinkModel = new LinkLoodsmanModel();
    ldsmnAttrModel = new AttrLoodsmanModel();
    ldsmnEditAttrModel = new AttrEditLoodsmanModel();

    connect(pshBtnTestProject,SIGNAL(clicked()),this, SLOT(listProject()));
    connect(pshBtnModelTest,SIGNAL(clicked()),this, SLOT(testModel()));
    connect(pshBtnTypeTest,SIGNAL(clicked()),this, SLOT(testType()));
    connect(pshBtnLinkTest,SIGNAL(clicked()),this, SLOT(testLink()));
    connect(pshBtnStatTest,SIGNAL(clicked()),this, SLOT(testStat()));
    connect(pshBtnAttrTest,SIGNAL(clicked()),this, SLOT(testAttr()));
}