Changeset View
Changeset View
Standalone View
Standalone View
lgpl/generic/widgets/kpColorCellsBase.cpp
Show First 20 Lines • Show All 544 Lines • ▼ Show 20 Line(s) | 539 | d->selected = cell; | |||
---|---|---|---|---|---|
545 | 545 | | |||
546 | item(newRow,newColumn)->setSelected(true); | 546 | item(newRow,newColumn)->setSelected(true); | ||
547 | } | 547 | } | ||
548 | 548 | | |||
549 | d->inMouse = false; | 549 | d->inMouse = false; | ||
550 | if (cell != -1) | 550 | if (cell != -1) | ||
551 | { | 551 | { | ||
552 | emit colorSelected( cell , color(cell) ); | 552 | emit colorSelected( cell , color(cell) ); | ||
553 | emit colorSelected( cell , color(cell), e->button() ); | 553 | emit colorSelectedWhitButton( cell , color(cell), e->button() ); | ||
554 | } | 554 | } | ||
555 | } | 555 | } | ||
556 | 556 | | |||
557 | void kpColorCellsBase::mouseDoubleClickEvent( QMouseEvent * /*e*/ ) | 557 | void kpColorCellsBase::mouseDoubleClickEvent( QMouseEvent * /*e*/ ) | ||
558 | { | 558 | { | ||
559 | int cell = positionToCell(d->mousePos, false, true/*allow empty cell*/); | 559 | int cell = positionToCell(d->mousePos, false, true/*allow empty cell*/); | ||
560 | 560 | | |||
561 | if (cell != -1) | 561 | if (cell != -1) | ||
562 | emit colorDoubleClicked( cell , color(cell) ); | 562 | emit colorDoubleClicked( cell , color(cell) ); | ||
563 | } | 563 | } | ||
564 | 564 | | |||
565 | 565 | |