[escher/message_table_cell_with_chevron_and_expression] subAccessoryView has margin by default

This commit is contained in:
Ruben Dashyan
2019-06-25 17:00:54 +02:00
committed by Léa Saviot
parent 9a803013b6
commit 0f3fc46ad1
4 changed files with 2 additions and 3 deletions

View File

@@ -16,7 +16,6 @@ GraphOptionsController::GraphOptionsController(Responder * parentResponder, Inpu
m_store(store),
m_graphController(graphController)
{
static_cast<ExpressionView *>(m_changeRegressionCell.subAccessoryView())->setHorizontalMargin(Metric::ExpressionViewHorizontalMargin);
}
const char * GraphOptionsController::title() {

View File

@@ -10,7 +10,6 @@ StoreParameterController::StoreParameterController(Responder * parentResponder,
m_changeRegressionCell(I18n::Message::Regression),
m_lastSelectionIsRegression(false)
{
static_cast<ExpressionView *>(m_changeRegressionCell.subAccessoryView())->setHorizontalMargin(Metric::ExpressionViewHorizontalMargin);
}
void StoreParameterController::viewWillAppear() {

View File

@@ -15,7 +15,6 @@ ListParameterController::ListParameterController(::InputEventHandlerDelegate * i
m_typeParameterController(this, listController, TableCell::Layout::Horizontal, Metric::CommonTopMargin, Metric::CommonRightMargin,
Metric::CommonBottomMargin, Metric::CommonLeftMargin)
{
static_cast<ExpressionView *>(m_typeCell.subAccessoryView())->setHorizontalMargin(Metric::ExpressionViewHorizontalMargin);
}
const char * ListParameterController::title() {

View File

@@ -1,10 +1,12 @@
#include <escher/message_table_cell_with_chevron_and_expression.h>
#include <escher/metric.h>
#include <escher/palette.h>
MessageTableCellWithChevronAndExpression::MessageTableCellWithChevronAndExpression(I18n::Message message, const KDFont * font) :
MessageTableCellWithChevron(message, font),
m_subtitleView(1.0f, 0.5f, Palette::GreyDark)
{
m_subtitleView.setHorizontalMargin(Metric::ExpressionViewHorizontalMargin);
}
View * MessageTableCellWithChevronAndExpression::subAccessoryView() const {