rocs/App
LoadedPluginsDialog.cpp
Go to the documentation of this file.
137 qMax(KIconLoader::SizeMedium + MARGIN * 2, fmTitle.height() + option.fontMetrics.height() + MARGIN * 2));
152 QRect contentsRect(dependantLayoutValue(MARGIN * 2 + option.rect.left(), option.rect.width() - MARGIN * 3, option.rect.width()), MARGIN + option.rect.top(), option.rect.width() - MARGIN * 3, option.rect.height() - MARGIN * 2);
172 painter->drawText(contentsRect, Qt::AlignLeft | Qt::AlignTop, fmTitle.elidedText(index.model()->data(index, Qt::DisplayRole).toString(), Qt::ElideRight, contentsRect.width()));
175 painter->drawText(contentsRect, Qt::AlignLeft | Qt::AlignBottom, option.fontMetrics.elidedText(index.model()->data(index, PluginsModel::CommentRole).toString(), Qt::ElideRight, contentsRect.width()));
201 aboutPushButton->move(dependantLayoutValue(option.rect.width() - MARGIN - aboutPushButtonSizeHint.width(), aboutPushButtonSizeHint.width(), option.rect.width()), option.rect.height() / 2 - aboutPushButtonSizeHint.height() / 2);
225 QPointer<KAboutApplicationDialog> aboutPlugin = new KAboutApplicationDialog(plugin->aboutData(), itemView());
272 title->setText(i18n("Graph File Plugins loaded for %1", KGlobal::mainComponent().aboutData()->programName()));
virtual int rowCount(const QModelIndex &parent) const =0
int width() const
virtual void setModel(QAbstractItemModel *model)
void save()
void setVerticalScrollMode(ScrollMode mode)
bool sortPlugins(GraphFilePluginInterface *pluginL, GraphFilePluginInterface *pluginR)
Definition: LoadedPluginsDialog.cpp:41
virtual QSize sizeHint() const
const char * name() const
bool isValid() const
void setFont(const QFont &font)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
layoutDirection
void setPen(const QColor &color)
void setWidth(int width)
void setItemDelegate(QAbstractItemDelegate *delegate)
int row() const
QAbstractItemDelegate * itemDelegate() const
void drawText(const QPointF &position, const QString &text)
virtual QVariant data(const QModelIndex &index, int role) const =0
QModelIndex parent() const
virtual QModelIndex parent(const QModelIndex &index) const =0
void restore()
const QAbstractItemModel * model() const
QStyle * style()
virtual int sizeHintForColumn(int column) const
int height() const
int column() const
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const =0
LoadedPluginsDialog(QWidget *parent=0)
Definition: LoadedPluginsDialog.cpp:263
QAbstractItemModel * model() const
QObject * parent() const
QString toString() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.