- #include <QObject> zu 106+ Header-Dateien hinzugefügt (Qt6 benötigt explizites Include) - ui_requirement.h/cpp zu requirement_widget.h/cpp umbenannt (vermeidet AutoUIC-Scan) - CMakeLists.txt aktualisiert - Qt6Positioning-Dependency in Dockerfile hinzugefügt Fixes: - AutoUIC-Fehler bei AesBaseGui (requirement.ui nicht gefunden) - QObject-Missing-Include-Fehler in Qt6 - Qt6Location-Modul nicht gefunden (qtpositioning fehlte)
61 lines
997 B
C++
Executable File
61 lines
997 B
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
#include <QObject>
|
|
|
|
#include "lts_widgets_export.h"
|
|
|
|
#include <QComboBox>
|
|
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
|
|
|
|
|
|
class LTSWIDGETS_EXPORT LtsComboBox : public QComboBox
|
|
{
|
|
Q_OBJECT
|
|
using BaseClass = QComboBox;
|
|
|
|
public:
|
|
explicit LtsComboBox(QWidget *parent = nullptr);
|
|
~LtsComboBox() = default;
|
|
|
|
|
|
|
|
static void setUseSelectionDialog(bool bUseSelectionDialog);
|
|
|
|
|
|
|
|
bool hasValueChanged() const;
|
|
|
|
void setExternalContentType(int ect) { m_externalContentType = ect; }
|
|
int externalContentType() const { return m_externalContentType; }
|
|
|
|
protected:
|
|
|
|
|
|
void showPopup() override;
|
|
|
|
void showEvent(QShowEvent *e) override;
|
|
void enterEvent(QEvent *e) override;
|
|
void leaveEvent(QEvent *) override;
|
|
|
|
protected slots:
|
|
void userChangedIndex(int index);
|
|
|
|
signals:
|
|
void signalExternallyChanged();
|
|
void signalRefill();
|
|
void signalEnterEvent();
|
|
void signalLeaveEvent();
|
|
|
|
private:
|
|
int m_currentIndex;
|
|
int m_externalContentType;
|
|
static bool s_useSelectionDialog;
|
|
};
|
|
}
|