mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Ref T506, context menu for user view -> COM text messages
This commit is contained in:
committed by
Mat Sutcliffe
parent
33a3984588
commit
fee2f8c5a0
@@ -38,8 +38,9 @@ namespace BlackGui
|
||||
this->setCurrentIndex(0);
|
||||
this->tabBar()->setExpanding(false);
|
||||
this->tabBar()->setUsesScrollButtons(true);
|
||||
connect(ui->tvp_AllUsers, &CUserView::modelDataChangedDigest, this, &CUserComponent::onCountChanged);
|
||||
connect(ui->tvp_Clients, &CClientView::modelDataChangedDigest, this, &CUserComponent::onCountChanged);
|
||||
connect(ui->tvp_AllUsers, &CUserView::modelDataChangedDigest, this, &CUserComponent::onCountChanged);
|
||||
connect(ui->tvp_AllUsers, &CUserView::requestTextMessageWidget, this, &CUserComponent::requestTextMessageWidget);
|
||||
connect(ui->tvp_Clients, &CClientView::modelDataChangedDigest, this, &CUserComponent::onCountChanged);
|
||||
connect(sGui->getIContextNetwork(), &IContextNetwork::connectionStatusChanged, this, &CUserComponent::onConnectionStatusChanged);
|
||||
connect(&m_updateTimer, &QTimer::timeout, this, &CUserComponent::update);
|
||||
this->onSettingsChanged();
|
||||
|
||||
@@ -48,10 +48,13 @@ namespace BlackGui
|
||||
//! Number of users
|
||||
int countUsers() const;
|
||||
|
||||
public slots:
|
||||
//! Update users
|
||||
void update();
|
||||
|
||||
signals:
|
||||
//! Request a text message
|
||||
void requestTextMessageWidget(const BlackMisc::Aviation::CCallsign &callsign);
|
||||
|
||||
private:
|
||||
//! Number of elements changed
|
||||
void onCountChanged(int count, bool withFilter);
|
||||
|
||||
Reference in New Issue
Block a user