30 lines
526 B
C++
30 lines
526 B
C++
|
|
|
|
#pragma once
|
|
#include "lts_base.h"
|
|
#include "lts_widgets_export.h"
|
|
|
|
#include <QObject>
|
|
#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);
|
|
};
|
|
|
|
} // namespace LtsWidgets
|