mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
37 lines
1.3 KiB
C++
37 lines
1.3 KiB
C++
// SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
|
|
|
#include "gui/views/viewtimestampobjects.h"
|
|
|
|
#include <QAction>
|
|
|
|
#include "gui/models/aircraftpartslistmodel.h"
|
|
#include "gui/models/aircraftsituationchangelistmodel.h"
|
|
#include "gui/models/aircraftsituationlistmodel.h"
|
|
|
|
using namespace swift::misc;
|
|
using namespace swift::misc::aviation;
|
|
using namespace swift::gui;
|
|
using namespace swift::gui::models;
|
|
|
|
namespace swift::gui::views
|
|
{
|
|
template <class T>
|
|
void CViewWithTimestampWithOffsetObjects<T>::push_frontKeepLatestAdjustedFirst(const ObjectType &object, int max)
|
|
{
|
|
this->derivedModel()->push_frontKeepLatestAdjustedFirst(object, max);
|
|
}
|
|
|
|
template <class T>
|
|
CViewWithTimestampWithOffsetObjects<T>::CViewWithTimestampWithOffsetObjects(QWidget *parent)
|
|
: CViewBase<ModelClass>(parent)
|
|
{
|
|
// void
|
|
}
|
|
|
|
template class CViewWithTimestampWithOffsetObjects<swift::gui::models::CAircraftPartsListModel>;
|
|
template class CViewWithTimestampWithOffsetObjects<swift::gui::models::CAircraftSituationListModel>;
|
|
template class CViewWithTimestampWithOffsetObjects<swift::gui::models::CAircraftSituationChangeListModel>;
|
|
|
|
} // namespace swift::gui::views
|