mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-16 20:00:01 +01:00
added remove key
This commit is contained in:
@@ -127,7 +127,14 @@ void ChromaWindow::colorAdd() {
|
||||
color_keys->addItem(text);
|
||||
}
|
||||
void ChromaWindow::colorRemove() {
|
||||
|
||||
int index = color_keys->currentRow();
|
||||
if(index >= 0) {
|
||||
QListWidgetItem *i = color_keys->takeItem(index);
|
||||
auto in = colorkeys_vec.begin()+index;
|
||||
if(!colorkeys_vec.empty()) {
|
||||
colorkeys_vec.erase(in);
|
||||
}
|
||||
}
|
||||
}
|
||||
void ChromaWindow::colorSet() {
|
||||
QString text;
|
||||
|
||||
Reference in New Issue
Block a user