32 lines
466 B
C++
Executable File
32 lines
466 B
C++
Executable File
|
|
|
|
|
|
#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);
|
|
|
|
};
|
|
|
|
}
|