Improved: Tabs can be closed by middle click in the Configuration Editor. Ctrl+A can be used to select all rows.
Fixed: When a line was edited manually in the Configuration Editor, the file was not saved automatically when "Instant mode" was enabled.
This commit is contained in:
1 parent
87d9084d61
commit
5a795a2d26
15 files changed
+299
-83
No files matched your search
@@ -487,6 +487,14 @@ void FilterTable::deleteSelectedLines()
|
||||
updateGuis();
|
||||
}
|
||||
|
||||
void FilterTable::selectAll()
|
||||
{
|
||||
selected.clear();
|
||||
for (Item* item : items)
|
||||
selected.insert(item);
|
||||
update();
|
||||
}
|
||||
|
||||
void FilterTable::updateModel()
|
||||
{
|
||||
emit linesChanged();
|
||||
@@ -652,6 +660,29 @@ void FilterTable::mousePressEvent(QMouseEvent* event)
|
||||
}
|
||||
}
|
||||
|
||||
void FilterTable::mouseReleaseEvent(QMouseEvent* event)
|
||||
{
|
||||
if (event->button() == Qt::LeftButton)
|
||||
{
|
||||
int row = rowForPos(event->pos(), false);
|
||||
if (row != -1)
|
||||
{
|
||||
Item* item = items[row];
|
||||
|
||||
if (!(event->modifiers() & Qt::ControlModifier) && !(event->modifiers() & Qt::ShiftModifier))
|
||||
{
|
||||
if (selected.contains(item) && selectionStart == item)
|
||||
{
|
||||
selected.clear();
|
||||
selected.insert(item);
|
||||
}
|
||||
}
|
||||
ensureRowVisible(row);
|
||||
update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void FilterTable::mouseMoveEvent(QMouseEvent* event)
|
||||
{
|
||||
if (event->buttons() & Qt::LeftButton)
|
||||
|
||||
Reference in new issue
Block a user