20 return m_visible ? 2 : 0;
24 View * views[] = {&m_iconView, &m_nameView};
29 m_iconView.
setFrame(
KDRect((
bounds().width()-k_iconWidth)/2, k_iconMargin, k_iconWidth,k_iconHeight));
41 if (m_visible != visible) {
static constexpr KDColor YellowDark
void setFrame(KDRect frame)
int numberOfSubviews() const override
void drawRect(KDContext *ctx, KDRect rect) const override
constexpr KDCoordinate width() const
void markRectAsDirty(KDRect rect)
View * subviewAtIndex(int index) override
constexpr KDColor KDColorWhite
void reloadCell() override
I18n::Message name() override
void setMessage(I18n::Message message)
KDSize minimalSizeForOptimalDisplay() const override
constexpr KDColor KDColorBlack
void layoutSubviews() override
bool isHighlighted() const
void setImage(const Image *image)
virtual const Image * icon()
void fillRect(KDRect rect, KDColor color)
void setVisible(bool visible)
KDCoordinate width() const
void setTextColor(KDColor textColor)
void setAppDescriptor(::App::Descriptor *appDescriptor)
virtual void reloadCell()
void setBackgroundColor(KDColor backgroundColor)
KDCoordinate height() const
constexpr KDCoordinate height() const