Files
qt5-legatus-legacy/Lts/Common/LtsWidgets/lts_tool_box.h
T
2026-08-13 18:33:10 +02:00

37 lines
536 B
C++
Executable File

/**
* @RDE_HEADER@
* ToolBox for Menus
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include "lts_base.h"
#include "lts_widgets_export.h"
#include <QToolBox>
namespace LtsWidgets
{
class LTSWIDGETS_EXPORT LtsToolBox : public QToolBox
{
Q_OBJECT
public:
explicit LtsToolBox(QWidget *parent = nullptr);
~LtsToolBox();
void resizeEvent(QResizeEvent *e) override;
void addItem(QWidget *widget, const QString &text);
signals:
void resized(QResizeEvent *e);
public slots:
void showContextMenu(const QPoint &pos);
};
}