mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-08-22 06:05:32 -04:00
feature: Add popup window for chat
* feature: Add chat view via QQuickView * feature: Update chat UI * fix: Disable chat in navigation panel and bottom bar by default
This commit is contained in:
@ -33,6 +33,9 @@ UpdateStatusWidget::UpdateStatusWidget(QWidget *parent)
|
||||
m_actionButton = new QToolButton(this);
|
||||
m_actionButton->setToolButtonStyle(Qt::ToolButtonIconOnly);
|
||||
|
||||
m_chatButton = new QToolButton(this);
|
||||
m_chatButton->setToolButtonStyle(Qt::ToolButtonIconOnly);
|
||||
|
||||
m_versionLabel = new QLabel(this);
|
||||
m_versionLabel->setVisible(false);
|
||||
|
||||
@ -41,6 +44,7 @@ UpdateStatusWidget::UpdateStatusWidget(QWidget *parent)
|
||||
m_updateButton->setStyleSheet("QPushButton { padding: 2px 8px; }");
|
||||
|
||||
layout->addWidget(m_actionButton);
|
||||
layout->addWidget(m_chatButton);
|
||||
layout->addWidget(m_versionLabel);
|
||||
layout->addWidget(m_updateButton);
|
||||
}
|
||||
@ -64,6 +68,11 @@ void UpdateStatusWidget::hideUpdateInfo()
|
||||
m_updateButton->setVisible(false);
|
||||
}
|
||||
|
||||
void UpdateStatusWidget::setChatButtonAction(QAction *action)
|
||||
{
|
||||
m_chatButton->setDefaultAction(action);
|
||||
}
|
||||
|
||||
QPushButton *UpdateStatusWidget::updateButton() const
|
||||
{
|
||||
return m_updateButton;
|
||||
|
Reference in New Issue
Block a user