Code cleanup

This commit is contained in:
lupoDharkael
2017-05-24 21:05:59 +02:00
parent fe463eec4f
commit 88c00f0cc3
14 changed files with 91 additions and 71 deletions

View File

@@ -22,7 +22,8 @@
// by the user.
CaptureModification::CaptureModification(const Button::Type t, const QPoint p,
const QColor c) : m_color(c), m_type(t) {
const QColor c) : m_color(c), m_type(t)
{
m_coords.append(p);
if (m_type == Button::Type::circle || m_type == Button::Type::rectangle
|| m_type == Button::Type::arrow || m_type == Button::Type::line ||