Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Common/LtsWidgets/lts_tool_box.h
T
torstenandCopilot d890b11c5f Qt6 Migration: LtsWidgets, BUILD_RTI Guards, externe Dependencies dokumentiert
- LtsWidgets Verzeichnis vollständig migriert (Qt5→Qt6)
- BUILD_RTI Guards für RTI-spezifische Module hinzugefügt
- Externe Dependencies in EXTERNAL_DEPS.md dokumentiert
- Qt6 API-Änderungen: QRegExp→QRegularExpression, enterEvent(QEnterEvent*)
- AutoUic-Fehler bei ui_requirement behoben (SKIP_AUTOUIC)
- Include-Pfade korrigiert (LtsElevation, LtsMultiMonitor, LtsUtilsCore)
- MOC-Fehler behoben (Q_INTERFACES entfernt wo nicht benötigt)
- CMakeLists.txt Anpassungen für Qt6 (PUBLIC statt INTERFACE)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-21 10:29:34 +02:00

37 lines
536 B
C++

/**
* @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);
};
}