Implemented coarse color picker
This commit is contained in:
1 parent
b6a6084ba8
commit
42108b2c65
16 files changed
+291
-97
No files matched your search
@@ -94,7 +94,7 @@ void EditSpriteDialog::newSprite()
|
||||
m_model->beginResetModel();
|
||||
m_pixmaps = std::vector<QPixmap> { std::move(pixmap) };
|
||||
m_model->endResetModel();
|
||||
qDebug() << m_model->rowCount({});
|
||||
|
||||
changed();
|
||||
}
|
||||
}
|
||||
@@ -110,11 +110,9 @@ void EditSpriteDialog::doubleClicked(const QModelIndex &index)
|
||||
ImageEditorDialog dialog{m_model->pixmap(index), tr("Image Editor: %0").arg(m_spriteName), this};
|
||||
if (dialog.exec() == QDialog::Accepted)
|
||||
{
|
||||
qDebug() << "apply pixmap?!";
|
||||
emit m_model->beginResetModel();
|
||||
m_pixmaps[index.row()] = dialog.pixmap();
|
||||
emit m_model->endResetModel();
|
||||
//emit m_model->dataChanged(index, index, {Qt::DecorationRole});
|
||||
emit m_model->dataChanged(index, index, {Qt::DecorationRole});
|
||||
|
||||
changed();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user