Working on QT, make divide and undivide methods