Files
pilotclient/src/gui/views/viewtimestampobjects.cpp
2024-11-17 09:25:46 +01:00

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