![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
Provides a "clear text" action for line edits. More...
#include "clearlineeditaddon.h"
Public Member Functions | |
ClearLineEditAddon (ICoreProxy_ptr proxy, QLineEdit *edit) | |
Creates the addon and installs it on the given edit. More... | |
Protected Member Functions | |
bool | eventFilter (QObject *, QEvent *) |
Provides a "clear text" action for line edits.
Using this class is as simple as this:
The constructor takes a pointer to the proxy object that is passed to IInfo::Init() method of the plugin instance object and the pointer to the line edit where the addon should be installed.
The line edit takes the ownership of the addon, so there is no need to keep track of it or explicitly delete it.
Definition at line 60 of file clearlineeditaddon.h.
LeechCraft::Util::ClearLineEditAddon::ClearLineEditAddon | ( | ICoreProxy_ptr | proxy, |
QLineEdit * | edit | ||
) |
Creates the addon and installs it on the given edit.
[in] | proxy | The proxy passed to IInfo::Init() of the plugin. |
[in] | edit | The line edit to install this addon into. The edit takes ownership of the addon. |
Definition at line 40 of file clearlineeditaddon.cpp.
|
protected |
Definition at line 78 of file clearlineeditaddon.cpp.