kopete/libkopete
kopetelistviewitem.cpp
Go to the documentation of this file.
812 ContactComponent::ContactComponent( ComponentBase *parent, Kopete::Contact *contact, int iconSize) : ImageComponent( parent ) , d( new Private )
1076 kDebug(14000) << " match: " << match << ", vis timer active: " << d->visibilityTimer.isActive()
1118 d->visibilityLevel = targetVisibility() ? Private::visibilityStepsTotal : Private::visibilityFoldSteps - 1;
1199 // any text we render is done by the Components, not by this class, so make sure we've nothing to write
1225 QStyleOption opt( lv->sortColumn(), 0 ); // ### hack; in 3.1, add a property in QListView and QHeader
virtual ~ComponentBase()=0
Definition: kopetelistviewitem.cpp:57
void visibilityChanged(bool visibility)
void setOpacity(float alpha)
Definition: kopetelistviewitem.cpp:1061
int sectionSize(int section) const
void updateAnimationPosition(int p, int s)
Definition: kopetelistviewitem.cpp:120
void componentAdded(Component *component)
A child item has been added to this item.
Definition: kopetelistviewitem.cpp:438
Component(ComponentBase *parent)
Definition: kopetelistviewitem.cpp:155
QSize size() const
void layout(const QRect &rect)
Set the size and position of this item relative to the list view item.
Definition: kopetelistviewitem.cpp:650
ImageComponent(ComponentBase *parent)
Definition: kopetelistviewitem.cpp:464
int width() const
const QBrush & text() const
int width() const
bool end()
void fillRect(const QRectF &rectangle, const QBrush &brush)
Component * componentAt(const QPoint &pt)
Definition: kopetelistviewitem.cpp:74
BoxComponent(ComponentBase *parent, Direction dir=Horizontal)
Definition: kopetelistviewitem.cpp:291
void setColor(ColorGroup group, ColorRole role, const QColor &color)
virtual int widthForHeight(int height)
Returns the width this component desires for a given height.
Definition: kopetelistviewitem.cpp:212
static void setEffects(bool animation, bool fading, bool folding)
Turn on and off certain visual effects for all Items.
Definition: kopetelistviewitem.cpp:975
void setColor(const QColor &color)
Definition: kopetelistviewitem.cpp:752
Kopete::Contact * contact()
Definition: kopetelistviewitem.cpp:828
void componentRemoved(Component *component)
A child item has been removed from this item.
Definition: kopetelistviewitem.cpp:444
static QList< KEmoticonsTheme::Token > tokenize(const QString &message, KEmoticonsTheme::ParseMode mode=KEmoticonsTheme::DefaultParse)
Definition: kopeteemoticons.cpp:46
void componentResized(Component *component)
A child item has been resized.
Definition: kopetelistviewitem.cpp:450
This class represents a rectangular subsection of a ListItem.
Definition: kopetelistviewitem.h:103
void setDefaultColor()
Definition: kopetelistviewitem.cpp:610
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
void setAlpha(int alpha)
virtual void setSearchMatch(bool match, bool searching)
Show or hide this item in a clean way depending on whether it matches the current quick search...
Definition: kopetelistviewitem.cpp:1068
int width(const QFontMetrics &fm, const Q3ListView *lv, int c) const
Definition: kopetelistviewitem.cpp:1172
int height() const
TextComponent(ComponentBase *parent, const QFont &font=QFont(), const QString &text=QString())
Definition: kopetelistviewitem.cpp:538
~ContactComponent()
Definition: kopetelistviewitem.cpp:819
void moveTopLeft(const QPoint &position)
virtual std::pair< QString, QRect > toolTip(const QPoint &relativePos)
Get the tool tip string and rectangle for a tip request at position relativePos relative to this item...
Definition: kopetelistviewitem.cpp:111
ComponentBase()
Definition: kopetelistviewitem.cpp:52
int x() const
int y() const
std::pair< QString, QRect > toolTip(const QPoint &relativePos)
Get the tool tip string and rectangle for a tip request at position relativePos relative to this item...
Definition: kopetelistviewitem.cpp:834
const QColor & color() const
virtual void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align)
Definition: kopetelistviewitem.cpp:1179
HSpacerComponent(ComponentBase *parent)
Definition: kopetelistviewitem.cpp:773
void setPixmap(const QPixmap &img, bool adjustSize=true)
Definition: kopetelistviewitem.cpp:489
itemMargin
void setFont(const QFont &font)
virtual int heightForWidth(int width)
Returns the height this component desires for a given width.
Definition: kopetelistviewitem.cpp:213
void scale(int w, int h, Qt::AspectRatioMode)
Definition: kopetelistviewitem.cpp:521
void redraw()
reparse again for emoticon (call this when emoticon theme change)
Definition: kopetelistviewitem.cpp:704
void componentResized(Component *component)
A child item has been resized.
Definition: kopetelistviewitem.cpp:1309
virtual ~Component()=0
Definition: kopetelistviewitem.cpp:164
const QBrush & brush(ColorGroup group, ColorRole role) const
void paint(QPainter *painter, const QPalette &pal)
Paint this item, inside the rectangle returned by rect().
Definition: kopetelistviewitem.cpp:616
void componentAdded(Component *component)
A child item has been added to this item.
Definition: kopetelistviewitem.cpp:1297
int top() const
int widthForHeight(int)
Returns the width this component desires for a given height.
Definition: kopetelistviewitem.cpp:782
void setPen(const QColor &color)
virtual void paint(QPainter *painter, const QPalette &pal)
Paint this item, inside the rectangle returned by rect().
Definition: kopetelistviewitem.cpp:247
void updatePixmap()
Definition: kopetelistviewitem.cpp:824
void setTop(int y)
int left() const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
void setToolTipSource(ToolTipSource *source=0)
Set a tool tip source for this item.
Definition: kopetelistviewitem.cpp:191
int heightForWidth(int)
Returns the height this component desires for a given width.
Definition: kopetelistviewitem.cpp:798
void setWidth(int width)
virtual void componentRemoved(Component *component)
A child item has been removed from this item.
Definition: kopetelistviewitem.cpp:93
QString elidedText(const QString &text, Qt::TextElideMode mode, int width, int flags) const
void drawText(const QPointF &position, const QString &text)
void setColor(const QColor &color)
Definition: kopetelistviewitem.cpp:603
bool setMinHeight(int height)
Change the minimum height, in pixels, this component requires in order to be at all useful...
Definition: kopetelistviewitem.cpp:223
Q3Header * header() const
Q3ListView * listView() const
bool contains(const QPoint &point, bool proper) const
bool targetVisibility()
Definition: kopetelistviewitem.cpp:1085
void setDefaultColor()
Definition: kopetelistviewitem.cpp:759
Component * component(uint n)
Definition: kopetelistviewitem.cpp:66
virtual void componentResized(Component *component)
A child item has been resized.
Definition: kopetelistviewitem.cpp:107
void paint(QPainter *painter, const QPalette &pal)
Paint this item, inside the rectangle returned by rect().
Definition: kopetelistviewitem.cpp:510
Definition: kopetecontact.h:58
virtual void componentAdded(Component *component)
A child item has been added to this item.
Definition: kopetelistviewitem.cpp:88
bool setMinWidth(int width)
Change the minimum width, in pixels, this component requires in order to be at all useful...
Definition: kopetelistviewitem.cpp:215
virtual void layout(const QRect &rect)
Set the size and position of this item relative to the list view item.
Definition: kopetelistviewitem.cpp:232
void setTargetVisibility(bool vis)
Definition: kopetelistviewitem.cpp:1090
virtual int widthForHeight(int height)
Returns the width this component desires for a given height.
Definition: kopetelistviewitem.cpp:303
const QColor & highlightedText() const
int minWidth()
Returns the smallest this component can become horizontally while still being useful.
Definition: kopetelistviewitem.cpp:210
int height() const
int width(const QString &text, int len) const
QPixmap pixmap(void)
Definition: kopetelistviewitem.cpp:484
void componentRemoved(Component *component)
A child item has been removed from this item.
Definition: kopetelistviewitem.cpp:1303
static QPoint operator+(const QPoint &pt, const QSize &sz)
Definition: kopetelistviewitem.cpp:500
void setFont(const QFont &font)
Definition: kopetelistviewitem.cpp:744
void layout(const QRect &rect)
Set the size and position of this item relative to the list view item.
Definition: kopetelistviewitem.cpp:375
Item(Q3ListView *parent, QObject *owner=0)
Definition: kopetelistviewitem.cpp:964
void setText(const QString &text)
Definition: kopetelistviewitem.cpp:695
void componentRemoved(Component *component)
A child item has been removed from this item.
Definition: kopetelistviewitem.cpp:274
void setText(const QString &text)
Definition: kopetelistviewitem.cpp:557
int width() const
VSpacerComponent(ComponentBase *parent)
Definition: kopetelistviewitem.cpp:789
QFontMetrics fontMetrics() const
void setHeight(int height)
void setFont(const QFont &font)
Definition: kopetelistviewitem.cpp:570
int height() const
int height() const
uint components()
Definition: kopetelistviewitem.cpp:64
QPoint topLeft() const
virtual int heightForWidth(int width)
Returns the height this component desires for a given width.
Definition: kopetelistviewitem.cpp:321
int widthForHeight(int)
Returns the width this component desires for a given height.
Definition: kopetelistviewitem.cpp:589
const QColor & base() const
ContactComponent(ComponentBase *parent, Kopete::Contact *contact, int iconSize)
Definition: kopetelistviewitem.cpp:812
~ImageComponent()
Definition: kopetelistviewitem.cpp:479
~TextComponent()
Definition: kopetelistviewitem.cpp:547
QString text()
Definition: kopetelistviewitem.cpp:766
int minHeight()
Returns the smallest this component can become vertically while still being useful.
Definition: kopetelistviewitem.cpp:211
const_iterator constEnd() const
const_iterator constBegin() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QRect rect() const
void setLeft(int x)
~BoxComponent()
Definition: kopetelistviewitem.cpp:298
const QColor & background() const
std::pair< QString, QRect > toolTip(const QPoint &relativePos)
Get the tool tip string and rectangle for a tip request at position relativePos relative to this item...
Definition: kopetelistviewitem.cpp:196
QImage scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
void componentAdded(Component *component)
A child item has been added to this item.
Definition: kopetelistviewitem.cpp:268
bool isValid() const
SpacerComponent(ComponentBase *parent, int w, int h)
Definition: kopetelistviewitem.cpp:841
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 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:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.