rewrote Button and ToggleButton to use the new PixmapButton as baseclass.
This commit is contained in:
parent
e2fdb4e009
commit
efa16e9236
15 changed files with 115 additions and 146 deletions
|
@ -44,12 +44,14 @@ PosButton::getPos (void)
|
|||
return m_pos;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PosButton::mousePressEvent (QMouseEvent *event)
|
||||
{
|
||||
QPoint p (event->pos ());
|
||||
|
||||
m_diffx = p.x();
|
||||
m_diffy = p.y();
|
||||
m_moving = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue