LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
lineeditbuttonmanager.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>
12#include "guiconfig.h"
13
14class QToolButton;
15class QLineEdit;
16
17namespace LC::Util
18{
36 class UTIL_GUI_API LineEditButtonManager : public QObject
37 {
38 QLineEdit * const Edit_;
39 const int FrameWidth_;
40
41 int Pad_;
42
43 QList<QToolButton*> Buttons_;
44 public:
56 explicit LineEditButtonManager (QLineEdit *edit);
57
62 void Add (QToolButton *button);
63 protected:
64 bool eventFilter (QObject*, QEvent*) override;
65 private:
66 void UpdatePos ();
67 };
68}
Manages additional overlay buttons in a QLineEdit.
#define UTIL_GUI_API
Definition guiconfig.h:16