swift
viewtimestampobjects.cpp
1 // SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #include <QAction>
7 
11 
12 using namespace swift::misc;
13 using namespace swift::misc::aviation;
14 using namespace swift::gui;
15 using namespace swift::gui::models;
16 
17 namespace swift::gui::views
18 {
19  template <class T>
21  {
22  this->derivedModel()->push_frontKeepLatestAdjustedFirst(object, max);
23  }
24 
25  template <class T>
27  : CViewBase<ModelClass>(parent)
28  {
29  // void
30  }
31 
35 
36 } // namespace swift::gui::views
Base class for views.
Definition: viewbase.h:648
typename T::ObjectType ObjectType
Model container element type.
Definition: viewbase.h:660
Base class for views timestamp offset objects.
void push_frontKeepLatestAdjustedFirst(const ObjectType &object, int max)
Insert as first element by keeping maxElements and the latest first.
Models to be used with views, mainly QTableView.
Views, mainly QTableView.
GUI related classes.
Free functions in swift::misc.