mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #368, updated models to reflect changes
* update count with filter * used alternative sortable columns * added classes for SimulatedAircraft * supporting filters
This commit is contained in:
31
src/blackgui/views/simulatedaircraftview.cpp
Normal file
31
src/blackgui/views/simulatedaircraftview.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
/* Copyright (C) 2013
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "simulatedaircraftview.h"
|
||||
#include <QHeaderView>
|
||||
|
||||
using namespace BlackMisc::Simulation;
|
||||
using namespace BlackGui::Models;
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Views
|
||||
{
|
||||
CSimulatedAircraftView::CSimulatedAircraftView(QWidget *parent) : CViewBase(parent)
|
||||
{
|
||||
this->standardInit(new CSimulatedAircraftListModel(this));
|
||||
this->m_withMenuItemRefresh = true;
|
||||
}
|
||||
|
||||
void CSimulatedAircraftView::setAircraftMode(CSimulatedAircraftListModel::AircraftMode mode)
|
||||
{
|
||||
this->m_model->setAircraftMode(mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user