parley
buttondelegate.cpp
Go to the documentation of this file.
29 : QStyledItemDelegate(itemView), m_rightMargin(0), m_buttonHeight(0), m_welcomeScreen(parent), m_itemView(itemView)
47 void ButtonDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
60 painter->drawPixmap(option.rect.x() + iconMargin, option.rect.y() + iconMargin, icon.pixmap(iconSize, iconSize));
63 QRect textRect(rectX, option.rect.y(), option.rect.width() - rectX - m_rightMargin, option.rect.height());
void slotPracticeUrl(const KUrl &url)
Definition: welcomescreen.cpp:138
ButtonDelegate(QAbstractItemView *itemView, WelcomeScreen *parent)
Definition: buttondelegate.cpp:28
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: buttondelegate.cpp:47
Definition: welcomescreen.h:30
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: buttondelegate.cpp:70
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.