BareCode V 1.1.0
This commit is contained in:
29
src/editor/SignatureTooltip.h
Normal file
29
src/editor/SignatureTooltip.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <QFrame>
|
||||
#include <QLabel>
|
||||
#include <QString>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// SignatureTooltip – Schwebendes Popup das die Signatur einer Funktion zeigt.
|
||||
// Erscheint unter dem Cursor, verschwindet automatisch wenn der Nutzer
|
||||
// die Klammer schließt oder den Kontext verlässt.
|
||||
// ---------------------------------------------------------------------------
|
||||
class SignatureTooltip : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SignatureTooltip(QWidget *parent = nullptr);
|
||||
|
||||
void showSignature(const QString &signature,
|
||||
const QString &description,
|
||||
const QPoint &globalPos);
|
||||
void hide();
|
||||
|
||||
private:
|
||||
QVBoxLayout *m_layout = nullptr;
|
||||
QLabel *m_sigLabel = nullptr;
|
||||
QLabel *m_descLabel = nullptr;
|
||||
};
|
||||
Reference in New Issue
Block a user