Files
IfcOpenShell/src/ifcviewer-full/modules/todo/Panel.cpp
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
2.5 KiB
C++
Raw Normal View History

2026-05-05 18:02:02 +10:00
// This file was generated with the assistance of an AI coding tool.
/********************************************************************************
* *
* This file is part of IfcOpenShell. *
* *
* IfcOpenShell is free software: you can redistribute it and/or modify *
* it under the terms of the Lesser GNU General Public License as published by *
* the Free Software Foundation, either version 3.0 of the License, or *
* (at your option) any later version. *
* *
* IfcOpenShell is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* Lesser GNU General Public License for more details. *
* *
* You should have received a copy of the Lesser GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *
********************************************************************************/
2026-05-09 19:43:26 +10:00
#include "Panel.h"
2026-05-05 18:02:02 +10:00
2026-05-05 19:59:51 +10:00
#include "../../components/Section.h"
2026-05-05 18:02:02 +10:00
2026-05-05 19:59:51 +10:00
#include <QLabel>
#include <QVBoxLayout>
2026-05-05 18:02:02 +10:00
2026-05-15 07:22:31 +10:00
namespace ifcviewerfull::modules::todo {
2026-05-05 18:02:02 +10:00
2026-05-09 19:43:26 +10:00
TodoPanel::TodoPanel(const QString& title, QWidget* parent)
2026-05-05 19:59:51 +10:00
: QWidget(parent)
{
auto* layout = new QVBoxLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(0);
2026-05-05 18:02:02 +10:00
2026-05-06 21:35:12 +10:00
auto* section = new components::Section("", components::SectionHeaderMode::Hidden, this);
2026-05-05 18:02:02 +10:00
2026-05-05 19:59:51 +10:00
auto* body = new QWidget(section);
auto* body_layout = new QVBoxLayout(body);
body_layout->setContentsMargins(0, 12, 0, 12);
body_layout->setSpacing(12);
2026-05-05 18:02:02 +10:00
2026-05-05 19:59:51 +10:00
auto* heading = new QLabel(title, body);
2026-05-05 18:02:02 +10:00
2026-05-05 19:59:51 +10:00
auto* content = new QLabel("Coming soon", body);
2026-05-06 13:13:37 +10:00
content->setProperty("textRole", "disabled");
2026-05-05 19:59:51 +10:00
content->setAlignment(Qt::AlignCenter);
body_layout->addWidget(heading);
body_layout->addStretch(1);
body_layout->addWidget(content);
body_layout->addStretch(1);
section->addBodyWidget(body);
layout->addWidget(section);
}
2026-05-15 07:22:31 +10:00
} // namespace ifcviewerfull::modules::todo