KDE3Support
k3iconview.cpp
Go to the documentation of this file.
68 connect( KGlobalSettings::self(), SIGNAL(settingsChanged(int)), SLOT(slotSettingsChanged(int)) );
249 if( !( m_bUseSingle && ((keybstate & Qt::ShiftModifier) || (keybstate & Qt::ControlModifier)) ) ) {
292 if( (selectionMode() == Extended) && (e->modifiers() & Qt::ShiftModifier) && !(e->modifiers() & Qt::ControlModifier) ) {
610 if ( itemIconRect.height() > itemTextRect.height() ) // icon bigger than text -> center vertically
void mouseButtonClicked(int button, Q3IconViewItem *item, const QPoint &pos)
void selectionChanged()
void setPixmapRect(const QRect &r)
itemTextPos
QRect normalized() const
bool isSelected() const
int width() const
QRect boundingRect() const
void setCursor(const QCursor &)
void repaintContents(int x, int y, int w, int h, bool erase)
void fillRect(const QRectF &rectangle, const QBrush &brush)
Qt::KeyboardModifiers keyboardModifiers()
Q3IconViewItem * nextItem() const
int width() const
virtual void paintItem(QPainter *p, const QColorGroup &c)
Definition: k3iconview.cpp:635
virtual QString text() const
static bool singleClick()
int timeout
Qt::MouseButtons buttons() const
virtual void contentsDropEvent(QDropEvent *e)
virtual void focusOutEvent(QFocusEvent *e)
Mode mode() const
virtual void contentsDragLeaveEvent(QDragLeaveEvent *e)
Definition: k3iconview.cpp:343
void cancelPendingHeldSignal()
This method allows to handle correctly cases where a subclass needs the held() signal to not be trigg...
Definition: k3iconview.cpp:382
const QColor & color(ColorGroup group, ColorRole role) const
virtual void contentsDropEvent(QDropEvent *e)
Definition: k3iconview.cpp:357
const QPoint & pos() const
maxItemWidth
void save()
virtual void wheelEvent(QWheelEvent *e)
bool wordWrapIconText() const
QRect unite(const QRect &rectangle) const
virtual const QMetaObject * metaObject() const
void executed(Q3IconViewItem *item)
This signal is emitted whenever the user executes an iconview item.
int height() const
int x() const
int y() const
bool hasFocus() const
virtual QPicture * picture() const
virtual void takeItem(Q3IconViewItem *item)
Reimplemented for held() signal behavior internal purposes.
Definition: k3iconview.cpp:371
const QPoint & pos() const
QRect boundingRect() const
static KGlobalSettings * self()
int index(const Q3IconViewItem *item) const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QRect textRect(bool relative) const
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void paintText(QPainter *p, const QColorGroup &c)
Definition: k3iconview.cpp:708
void update()
virtual QPixmap * pixmap() const
Arrangement arrangement() const
QSize globalStrut()
void setItemRect(const QRect &r)
virtual void setSelected(Q3IconViewItem *item, bool s, bool cb)
virtual void contentsMouseReleaseEvent(QMouseEvent *e)
Definition: k3iconview.cpp:331
virtual void contentsMousePressEvent(QMouseEvent *e)
QString number(int n, int base)
const QPoint & globalPos() const
virtual void contentsDragEnterEvent(QDragEnterEvent *e)
Definition: k3iconview.cpp:337
SelectionMode selectionMode() const
void emitExecute(Q3IconViewItem *item, const QPoint &pos)
Definition: k3iconview.cpp:236
updatesEnabled
void setPen(const QColor &color)
void setFocus()
Qt::MouseButton button() const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
void onItem(Q3IconViewItem *item)
void setWidth(int width)
bool isEmpty() const
bool sendEvent(QObject *receiver, QEvent *event)
void held(Q3IconViewItem *item)
This signal is emitted whenever the user hold something on an iconview during a drag'n'drop.
void paintPixmap(QPainter *p, const QColorGroup &c)
Definition: k3iconview.cpp:662
QRect pixmapRect(bool relative) const
virtual void contentsMouseDoubleClickEvent(QMouseEvent *e)
virtual void contentsMouseReleaseEvent(QMouseEvent *e)
virtual void calcRect(const QString &text_=QString())
Definition: k3iconview.cpp:476
virtual void contentsDragLeaveEvent(QDragLeaveEvent *e)
Definition: k3iconview.h:61
virtual void clearSelection()
virtual void setFont(const QFont &)
Reimplemented for internal purposes.
Definition: k3iconview.cpp:401
bool signalsBlocked() const
Qt::KeyboardModifiers modifiers() const
void accept()
bool blockSignals(bool block)
bool isNull() const
int serialNumber() const
int height() const
void setFont(const QFont &)
const char * className() const
int width(const QString &text, int len) const
void stop()
int delta() const
void restore()
itemTextBackground
static bool changeCursorOverIcon()
virtual void contentsDragMoveEvent(QDragMoveEvent *e)
virtual void contentsDragEnterEvent(QDragEnterEvent *e)
QSize size() const
virtual void contentsMouseDoubleClickEvent(QMouseEvent *e)
Definition: k3iconview.cpp:305
int width() const
int height() const
A variant of QIconView that honors KDE's system-wide settings.
Definition: k3iconview.h:41
void setY(int y)
void setHeight(int height)
void drawText(QPainter *painter, int x, int y, int flags=Qt::AlignLeft) const
K3IconView(QWidget *parent=0, const char *name=0, Qt::WindowFlags f=0)
Definition: k3iconview.cpp:58
int height() const
static int autoSelectDelay()
void doubleClicked(Q3IconViewItem *item, const QPoint &pos)
This signal gets emitted whenever the user double clicks into the iconview.
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Q3IconViewItem * findItem(const QPoint &pos) const
void setTextRect(const QRect &r)
void start(int msec)
void setAlphaF(qreal alpha)
typedef WindowFlags
virtual void contentsDragMoveEvent(QDragMoveEvent *e)
Definition: k3iconview.cpp:351
void drawPicture(const QPointF &point, const QPicture &picture)
const QPoint & pos() const
void onViewport()
void setIconTextHeight(int n)
Set the maximum number of lines that will be used to display icon text.
Definition: k3iconview.cpp:440
QWidget * viewport() const
QScrollBar * horizontalScrollBar() const
virtual void takeItem(Q3IconViewItem *item)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
static KWordWrap * formatText(QFontMetrics &fm, const QRect &r, int flags, const QString &str, int len=-1)
virtual void leaveEvent(QEvent *event)
QRect rect() const
Q3IconViewItem * currentItem() const
void setPixmapSize(const QSize &size)
Using this function, you can specify a custom size for the pixmap.
Definition: k3iconview.cpp:731
virtual void contentsMousePressEvent(QMouseEvent *e)
Definition: k3iconview.cpp:290
virtual void setCurrentItem(Q3IconViewItem *item)
Q3IconViewItem * firstItem() const
QRect rect() const
int x() const
int y() const
void setSingleShot(bool singleShot)
typedef KeyboardModifiers
Q3IconView * iconView() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 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:26:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.