Пример #1
0
void DockWindow::ContainerDragMove(DockCont &dc)
{
	HighlightCtrl &hl = GetHighlightCtrl();
	Point p = GetMousePos();
	if (hl.GetParent()) {
		if (!hl.bounds.Contains(p))
			StopHighlight(IsAnimatedHighlight());
		return KillTimeCallback(TIMEID_ANIMATE_DELAY);
	}
	animdelay ?
		KillSetTimeCallback(animdelay, THISBACK1(StartHighlight, &dc), TIMEID_ANIMATE_DELAY) :
		StartHighlight(&dc);
}
Пример #2
0
GParamLabel::GParamLabel(GParam* pTheParam, QWidget *parent )
    : QLabel(pTheParam->Name(), parent)
    , m_pParam(pTheParam)
{
    connect(pTheParam, SIGNAL(NameChanged(QString)), this, SLOT(setText(QString)));

    setContextMenuPolicy(Qt::ActionsContextMenu);

// 	setTextInteractionFlags(Qt::TextSelectableByMouse);

    // highlighting the labels:
    connect(m_pParam, SIGNAL(MouseEnteredParamLabel()), this, SLOT(StartHighlight()));
    connect(m_pParam, SIGNAL(MouseExitedParamLabel()), this, SLOT(StopHighlight()));

    m_InititalPalette = palette();

#ifdef QT_DEBUG
// 	setToolTip(m_pParam->UniqueSystemID());
    setStatusTip(m_pParam->UniqueSystemID());
// 	setWhatsThis(m_pParam->UniqueSystemID());
#endif
}