mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/sequence/list] Create a class sequence expression cell inheriting
from function expression cell Change-Id: Icaec669c684ebbaa353f6801ca2f976e5fb76a9a
This commit is contained in:
@@ -6,7 +6,7 @@ namespace Shared {
|
||||
FunctionExpressionCell::FunctionExpressionCell() :
|
||||
EvenOddCell(),
|
||||
m_function(nullptr),
|
||||
m_expressionView(ExpressionView())
|
||||
m_expressionView(EvenOddExpressionCell())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ void FunctionExpressionCell::setFunction(Function * f) {
|
||||
|
||||
void FunctionExpressionCell::reloadCell() {
|
||||
EvenOddCell::reloadCell();
|
||||
m_expressionView.setBackgroundColor(backgroundColor());
|
||||
if (m_function) {
|
||||
bool active = m_function->isActive();
|
||||
KDColor textColor = active ? KDColorBlack : Palette::GreyDark;
|
||||
@@ -25,6 +24,16 @@ void FunctionExpressionCell::reloadCell() {
|
||||
}
|
||||
}
|
||||
|
||||
void FunctionExpressionCell::setEven(bool even) {
|
||||
EvenOddCell::setEven(even);
|
||||
m_expressionView.setEven(even);
|
||||
}
|
||||
|
||||
void FunctionExpressionCell::setHighlighted(bool highlight) {
|
||||
EvenOddCell::setHighlighted(highlight);
|
||||
m_expressionView.setHighlighted(highlight);
|
||||
}
|
||||
|
||||
Function * FunctionExpressionCell::function() {
|
||||
return m_function;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user