mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-31 15:49:58 +02:00
diagramselection, minor bugfix with unselect/selectall contextMenu
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2151 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -107,11 +107,11 @@ void diagramselection::on_tableDiagram_customContextMenuRequested(const QPoint &
|
|||||||
QAction *ret = menu.exec(ui -> tableDiagram -> viewport() -> mapToGlobal(pos));
|
QAction *ret = menu.exec(ui -> tableDiagram -> viewport() -> mapToGlobal(pos));
|
||||||
if (ret == desl) {
|
if (ret == desl) {
|
||||||
for(int i=0; i<ui -> tableDiagram -> rowCount();i++)
|
for(int i=0; i<ui -> tableDiagram -> rowCount();i++)
|
||||||
ui -> tableDiagram -> item(i, 1)->setCheckState(Qt::Unchecked);
|
ui -> tableDiagram -> item(i, 0)->setCheckState(Qt::Unchecked);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
for(int i=0; i<ui -> tableDiagram -> rowCount();i++)
|
for(int i=0; i<ui -> tableDiagram -> rowCount();i++)
|
||||||
ui -> tableDiagram -> item(i, 1)->setCheckState(Qt::Checked);
|
ui -> tableDiagram -> item(i, 0)->setCheckState(Qt::Checked);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user