|
|
@ -68,7 +68,7 @@ public:
|
|
|
|
CCrystalTooltip(TQWidget *widget,CrystalClient *vc):TQToolTip(widget),client(vc) {}
|
|
|
|
CCrystalTooltip(TQWidget *widget,CrystalClient *vc):TQToolTip(widget),client(vc) {}
|
|
|
|
virtual void maybeTip(const TQPoint& p)
|
|
|
|
virtual void maybeTip(const TQPoint& p)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (client->titlebar_->tqgeometry().tqcontains(p))
|
|
|
|
if (client->titlebar_->tqgeometry().contains(p))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
tip(client->titlebar_->tqgeometry(),client->caption());
|
|
|
|
tip(client->titlebar_->tqgeometry(),client->caption());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -961,7 +961,7 @@ CrystalButton* CrystalClient::addButtons(TQBoxLayout *tqlayout, const TQString&
|
|
|
|
if (current)
|
|
|
|
if (current)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
tqlayout->addWidget(current);
|
|
|
|
tqlayout->addWidget(current);
|
|
|
|
if (tqlayout->tqfindWidget(current)==0)current->setFirstLast(true,false);
|
|
|
|
if (tqlayout->findWidget(current)==0)current->setFirstLast(true,false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
lastone=current;
|
|
|
|
lastone=current;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -972,7 +972,7 @@ CrystalButton* CrystalClient::addButtons(TQBoxLayout *tqlayout, const TQString&
|
|
|
|
void CrystalClient::activeChange()
|
|
|
|
void CrystalClient::activeChange()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Repaint();
|
|
|
|
Repaint();
|
|
|
|
if (isActive()) ::factory->clients.at(::factory->clients.tqfind(this));
|
|
|
|
if (isActive()) ::factory->clients.at(::factory->clients.find(this));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CrystalClient::captionChange()
|
|
|
|
void CrystalClient::captionChange()
|
|
|
@ -1182,7 +1182,7 @@ void CrystalClient::ClientWindows(Window* v_frame,Window* v_wrapper,Window *v_cl
|
|
|
|
|
|
|
|
|
|
|
|
void CrystalClient::mouseDoubleClickEvent(TQMouseEvent *e)
|
|
|
|
void CrystalClient::mouseDoubleClickEvent(TQMouseEvent *e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (/*(titlebar_->tqgeometry().tqcontains(e->pos()))&&*/(e->button()==Qt::LeftButton)) titlebarDblClickOperation();
|
|
|
|
if (/*(titlebar_->tqgeometry().contains(e->pos()))&&*/(e->button()==Qt::LeftButton)) titlebarDblClickOperation();
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
TQMouseEvent me(TQEvent::MouseButtonPress,e->pos(),e->button(),e->state());
|
|
|
|
TQMouseEvent me(TQEvent::MouseButtonPress,e->pos(),e->button(),e->state());
|
|
|
|
processMousePressEvent(&me);
|
|
|
|
processMousePressEvent(&me);
|
|
|
|