kio Library API Documentation

KURLBarListBox Class Reference

This is the listbox used in KURLBar. More...

#include <kurlbar.h>

Inheritance diagram for KURLBarListBox:

KListBox QListBox List of all members.

Signals

void dropped (QDropEvent *e)
 Emitted when a drop-event happened.


Public Methods

 KURLBarListBox (QWidget *parent=0, const char *name=0)
 Constructs a KURLBarListBox.

 ~KURLBarListBox ()
 Destroys the box.

virtual void setOrientation (Qt::Orientation orient)
 Sets the orientation of the widget.

Qt::Orientation orientation () const

Protected Methods

virtual QDragObjectdragObject ()
virtual void contentsDragEnterEvent (QDragEnterEvent *)
 @reimpl

virtual void contentsDropEvent (QDropEvent *)
 @reimpl


Detailed Description

This is the listbox used in KURLBar.

It is a subclass of KListBox to support drag & drop and to set up the row / column mode.

The widget has just one row or one column, depending on orientation().

Author:
Carsten Pfeiffer <pfeiffer@kde.org>

Definition at line 435 of file kurlbar.h.


Constructor & Destructor Documentation

KURLBarListBox::KURLBarListBox QWidget   parent = 0,
const char *    name = 0
 

Constructs a KURLBarListBox.

Definition at line 668 of file kurlbar.cpp.

KURLBarListBox::~KURLBarListBox  
 

Destroys the box.

Definition at line 676 of file kurlbar.cpp.


Member Function Documentation

void KURLBarListBox::setOrientation Qt::Orientation    orient [virtual]
 

Sets the orientation of the widget.

Horizontal means, all items are arranged in one row. Vertical means, all items are arranged in one column.

See also:
orientation

Definition at line 708 of file kurlbar.cpp.

References QListBox::setColumnMode(), and QListBox::setRowMode().

Referenced by KURLBar::setOrientation().

Qt::Orientation KURLBarListBox::orientation   const [inline]
 

Returns:
the current orientation.
See also:
setOrientation

Definition at line 460 of file kurlbar.h.

Referenced by KURLBar::orientation().

void KURLBarListBox::dropped QDropEvent   e [signal]
 

Emitted when a drop-event happened.

Referenced by contentsDropEvent().

QDragObject * KURLBarListBox::dragObject   [protected, virtual]
 

Returns:
a suitable QDragObject when an item is dragged.

Definition at line 681 of file kurlbar.cpp.

References QListBox::firstItem(), QListBox::item(), KURLDrag::newDrag(), and KURLBarItem::url().

void KURLBarListBox::contentsDragEnterEvent QDragEnterEvent   [protected, virtual]
 

@reimpl

Definition at line 698 of file kurlbar.cpp.

void KURLBarListBox::contentsDropEvent QDropEvent   [protected, virtual]
 

@reimpl

Definition at line 703 of file kurlbar.cpp.

References dropped().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:37 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001