#2179 Summary Plot : Change identifier using PgUp / PgDown

This commit is contained in:
Magne Sjaastad
2017-11-24 18:13:43 +01:00
parent e231685d4c
commit 0a8a67c2aa
8 changed files with 278 additions and 56 deletions

View File

@@ -181,6 +181,32 @@ void RiuSummaryQwtPlot::contextMenuEvent(QContextMenuEvent* event)
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuSummaryQwtPlot::keyPressEvent(QKeyEvent* keyEvent)
{
if (keyEvent->key() == Qt::Key_PageUp)
{
if (m_plotDefinition)
{
m_plotDefinition->applyPreviousIdentifier();
}
keyEvent->accept();
}
if (keyEvent->key() == Qt::Key_PageDown)
{
if (m_plotDefinition)
{
m_plotDefinition->applyNextIdentifier();
}
keyEvent->accept();
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------