mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 14:58:33 +08:00
refs #288, adjusted server and network views
* aircraft settings are gone, move to login screen * no selected server needed anymore * marked outdated methods as deprecated
This commit is contained in:
committed by
Roland Winklmeier
parent
d1d02d6c3c
commit
44d0cd002b
@@ -37,29 +37,5 @@ namespace BlackGui
|
||||
(void)QT_TRANSLATE_NOOP("ViewServerList", "userid");
|
||||
}
|
||||
|
||||
/*
|
||||
* Special functions
|
||||
*/
|
||||
QVariant CServerListModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if (role == Qt::BackgroundRole)
|
||||
{
|
||||
if (!this->hasSelectedServer()) return QVariant();
|
||||
CServer currentRow = this->at(index);
|
||||
if (currentRow == this->getSelectedServer())
|
||||
{
|
||||
QBrush background(Qt::green);
|
||||
return background;
|
||||
}
|
||||
else
|
||||
{
|
||||
return QVariant();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return CListModelBase::data(index, role);
|
||||
}
|
||||
}
|
||||
} // class
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user