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>
This commit is contained in:
145 files changed
+17700
-14377
No files matched your search
@@ -1,33 +1,48 @@
|
||||
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* An overlay for LtsDialog's setOverlay(..) which shows a 'loading bar'
|
||||
* (a progress bar in a special state) and a default label "Loading ...", which
|
||||
* can be altered
|
||||
* $Id: $
|
||||
* $HeadURL: $
|
||||
* $Author: $
|
||||
*
|
||||
* Created by Mike Lennart Wille, SLTE, 2022-07-07
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "lts_widgets_export.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QWidget>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class LtsOverlayLoading;
|
||||
}
|
||||
|
||||
namespace Ui { class LtsOverlayLoading; }
|
||||
|
||||
|
||||
namespace LtsWidgets
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief The LtsOverlayLoading class is an overlay for LtsDialog's
|
||||
* setOverlay(..) which shows a 'loading bar' (a progress bar in a special
|
||||
* state), a default label "Loading ..." - which can be altered with
|
||||
* 'setText(..)' - and a cancel button (hidden by default) that emits the
|
||||
* 'cancel' signal.
|
||||
*/
|
||||
class LTSWIDGETS_EXPORT LtsOverlayLoading : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit LtsOverlayLoading(QWidget* parent = nullptr);
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit LtsOverlayLoading(QWidget *parent = nullptr);
|
||||
|
||||
void setText(const QString& text);
|
||||
void setCancelButtonVisible(bool visible);
|
||||
void setCancelButtonEnabled(bool enabled);
|
||||
void setText(const QString &text);
|
||||
void setCancelButtonVisible(bool visible);
|
||||
void setCancelButtonEnabled(bool enabled);
|
||||
|
||||
signals:
|
||||
void cancel();
|
||||
signals:
|
||||
void cancel();
|
||||
|
||||
private:
|
||||
Ui::LtsOverlayLoading* m_ui;
|
||||
private:
|
||||
Ui::LtsOverlayLoading *m_ui;
|
||||
};
|
||||
} // namespace LtsWidgets
|
||||
}
|
||||
Reference in new issue
Block a user