refactor: Provider settings panel improve

This commit is contained in:
Petr Mironychev
2026-06-29 10:42:33 +02:00
parent 70c6d30a72
commit 86c537477d
16 changed files with 49 additions and 22 deletions

View File

@@ -32,6 +32,7 @@ public:
void populate(const Providers::ProviderInstance &inst, bool hasStoredKey);
void clear();
void refreshKeyStatus(bool hasStoredKey);
void showRevealedKey(const QString &key);
void setLaunchState(Providers::ProviderLauncher::State st, const QString &lastError);
void resetLaunchTerminal(const QByteArray &scrollback);
void appendLaunchBytes(const QByteArray &chunk);
@@ -44,6 +45,7 @@ signals:
void deleteRequested();
void apiKeySaveRequested(const QString &newKey);
void apiKeyClearRequested();
void apiKeyRevealRequested();
void launchStartRequested(const QString &providerName);
void launchStopRequested(const QString &providerName);
void launchRestartRequested(const QString &providerName);
@@ -74,7 +76,7 @@ private:
QLabel *m_descriptionLabel = nullptr;
QLineEdit *m_nameEdit = nullptr;
QLineEdit *m_typeEdit = nullptr;
QLabel *m_protocolLabel = nullptr;
QPlainTextEdit *m_descriptionEdit = nullptr;
QLineEdit *m_urlEdit = nullptr;
QLabel *m_samplePreview = nullptr;