Пример #1
0
void VSCVidListFrame::mousePressEvent(QMouseEvent *event)
{
	Qt::MouseButtons mouseButtons = event->buttons();
    if( mouseButtons != Qt::LeftButton )
    {
        return;
    }	
	
	emit SignalClicked();
	VDC_DEBUG( "%s mousePressEvent %d\n",__FUNCTION__);
}
Пример #2
0
VSCVidList::VSCVidList(QWidget *parent)
    : QWidget(parent), m_pVidInf(NULL), 
	m_pCameraTree(NULL), m_pGroupTree(NULL), 
	m_pViewTree(NULL), m_pEmapTree(NULL)
{
	ui.setupUi(this);

	m_treeLayout = new QVBoxLayout();

	//m_treeLayout->addWidget(m_pVideo);
	m_treeLayout->setMargin(0);

	ui.ListWidget->setLayout(m_treeLayout);
	ui.pbCamera->hide();
	ui.pbGroup->hide();
	ui.pbView->hide();
	ui.pbEmap->hide();
	
	connect(ui.pbCamera, SIGNAL(SignalClicked()), this, SLOT(SlotShowCameraTree()));
	connect(ui.pbGroup, SIGNAL(SignalClicked()), this, SLOT(SlotShowGroupTree()));
	
}