kalarm/lib
LineEdit Class Reference
#include <lineedit.h>
Inheritance diagram for LineEdit:

Detailed Description
Line edit widget with extra drag and drop options.The LineEdit class is a line edit widget which accepts specified types of drag and drop content.
The widget will always accept drag and drop of text, except text/calendar mime type, and of URLs. It will accept additional mime types depending on its configuration: Text type accepts email address lists. Email type accepts email address lists and VCard data (e.g. from KAddressBook).
The class also provides an option to prevent its contents being selected when the widget receives focus.
- Author:
- David Jarvie <software@astrojar.org.uk>
Definition at line 43 of file lineedit.h.
Public Types | |
enum | Type { Text, Url, Emails } |
Public Slots | |
virtual void | setText (const QString &str) |
Public Member Functions | |
LineEdit (Type type, QWidget *parent=0, const char *name=0) | |
LineEdit (QWidget *parent=0, const char *name=0) | |
void | setNoSelect () |
void | setCursorAtEnd (bool end=true) |
Protected Member Functions | |
virtual void | focusInEvent (QFocusEvent *) |
virtual void | dragEnterEvent (QDragEnterEvent *) |
virtual void | dropEvent (QDropEvent *) |
Member Enumeration Documentation
|
Types of drag and drop content which will be accepted.
Definition at line 61 of file lineedit.h. |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 42 of file lineedit.cpp. |
|
Constructs a line edit whose content type is Text.
Definition at line 51 of file lineedit.cpp. |
Member Function Documentation
|
Sets whether the cursor should be set at the beginning or end of the text when setText() is called.
Definition at line 78 of file lineedit.h. |
|
Prevents the line edit's contents being selected when the widget receives focus.
Definition at line 74 of file lineedit.h. |
|
Sets the contents of the line edit to be
Reimplemented from KLineEdit. Definition at line 90 of file lineedit.cpp. |
The documentation for this class was generated from the following files: