2025-08-05 22:39:41 +02:00
|
|
|
/***************************************************************************
|
|
|
|
|
|
|
|
source::worx xtree
|
|
|
|
Copyright © 2024-2025 c.holzheuer
|
|
|
|
christoph.holzheuer@gmail.com
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef XQMAINMODEL_H
|
|
|
|
#define XQMAINMODEL_H
|
|
|
|
|
|
|
|
//#include <QItemSelectionModel>
|
|
|
|
|
2025-08-07 03:11:56 +02:00
|
|
|
#include <xqviewmodel.h>
|
2025-08-05 22:39:41 +02:00
|
|
|
//#include <xqmodelsections.h>
|
|
|
|
|
2025-08-07 03:11:56 +02:00
|
|
|
class XQTreeTable;
|
2025-08-05 22:39:41 +02:00
|
|
|
|
|
|
|
|
2025-08-07 03:11:56 +02:00
|
|
|
class XQMainModel : public XQViewModel
|
2025-08-05 22:39:41 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
explicit XQMainModel(QObject *parent = nullptr);
|
2025-08-08 21:39:33 +02:00
|
|
|
virtual ~XQMainModel() = default;
|
2025-08-05 22:39:41 +02:00
|
|
|
|
2025-08-17 11:50:26 +02:00
|
|
|
XQItem* makeTreeItem( XQNodePtr contentNode );
|
2025-08-05 22:39:41 +02:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
void initContextMenu() override;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // XQMAINMODEL_H
|