parent
944c256741
commit
0eade74c78
@ -17,7 +17,8 @@ void CoinControlTreeWidget::keyPressEvent(QKeyEvent *event)
|
|||||||
{
|
{
|
||||||
event->ignore();
|
event->ignore();
|
||||||
int COLUMN_CHECKBOX = 0;
|
int COLUMN_CHECKBOX = 0;
|
||||||
this->currentItem()->setCheckState(COLUMN_CHECKBOX, ((this->currentItem()->checkState(COLUMN_CHECKBOX) == Qt::Checked) ? Qt::Unchecked : Qt::Checked));
|
if(this->currentItem())
|
||||||
|
this->currentItem()->setCheckState(COLUMN_CHECKBOX, ((this->currentItem()->checkState(COLUMN_CHECKBOX) == Qt::Checked) ? Qt::Unchecked : Qt::Checked));
|
||||||
}
|
}
|
||||||
else if (event->key() == Qt::Key_Escape) // press esc -> close dialog
|
else if (event->key() == Qt::Key_Escape) // press esc -> close dialog
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user