Skip to content
Snippets Groups Projects
Select Git revision
  • 6887188966ad8cdb08e1e5948b9e87cda4026b3a
  • main default protected
  • Light/DarkMode-Feature
3 results

SignIn.jsx

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    editable.cpp 981 B
    #include "editable.h"
    
    namespace tool {
        Editable::Editable(const QString & name, const QIcon & icon,bool free)
        : Tool(name, icon), _free(free) {}
    
        void Editable::pressed(ui::ImageArea & area, QImage & image, QPoint & click, ui::Selection & selection, QMouseEvent & e) {
            if(image.rect().contains(click) || this->_free) {
                this->onMousePressed(area, image, click, selection, e);
            }
        }
    
        void Editable::released(ui::ImageArea & area, QImage & image, QPoint & click, ui::Selection & selection, QMouseEvent & e) {
            if(image.rect().contains(click) || this->_free) {
                this->onMouseReleased(area, image, click, selection, e);
            }
        }
    
        void Editable::moved(ui::ImageArea & area, QImage & image, QPoint & click, ui::Selection & selection, QMouseEvent & e, bool hold) {
            if(image.rect().contains(click) || this->_free) {
                this->onMouseMoved(area, image, click, selection, e, hold);
            }
        }
    }