37 lines
536 B
C++
Executable File
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);
|
|
|
|
};
|
|
|
|
}
|