LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
clearlineeditaddon.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <QObject>
13#include "guiconfig.h"
14
15class QLineEdit;
16class QToolButton;
17class QShortcut;
18
19namespace LC::Util
20{
22
42 class UTIL_GUI_API ClearLineEditAddon : public QObject
43 {
44 QToolButton * const Button_;
45 QShortcut * const EscShortcut_;
46 public:
59 ClearLineEditAddon (const ICoreProxy_ptr& proxy, QLineEdit *edit);
60
74 ClearLineEditAddon (const ICoreProxy_ptr& proxy, QLineEdit *edit, LineEditButtonManager *manager);
75
83 void SetEscClearsEdit (bool clears);
84 };
85}
void SetEscClearsEdit(bool clears)
Toggles whether Esc button clears the line edit.
ClearLineEditAddon(const ICoreProxy_ptr &proxy, QLineEdit *edit)
Creates the addon and installs it on the given edit.
Manages additional overlay buttons in a QLineEdit.
#define UTIL_GUI_API
Definition guiconfig.h:16
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Definition icoreproxy.h:181