Some checks failed
All Builds / Qtk (-DCMAKE_PREFIX_PATH=/home/runner/work/qtk/Qt/$QT_VERSION/gcc_64/ $CONFIG, -j $(nproc), ubuntu-latest) (push) Failing after 23s
All Builds / Qtk-Library (-DCMAKE_PREFIX_PATH=/home/runner/work/qtk/Qt/$QT_VERSION/gcc_64/ $CONFIG, -j $(nproc), ubuntu-latest) (push) Failing after 22s
All Builds / Qtk-Plugins (-DCMAKE_PREFIX_PATH=/home/runner/work/qtk/Qt/$QT_VERSION/gcc_64/ $CONFIG, -j $(nproc), ubuntu-latest) (push) Failing after 20s
All Builds / Qtk-Assimp-Targets (-DCMAKE_PREFIX_PATH=/home/runner/work/qtk/Qt/$QT_VERSION/gcc_64/, ubuntu-latest) (push) Failing after 18s
Linting / Tidy (push) Failing after 24s
Linting / Format (app) (push) Failing after 23s
Linting / Format (src) (push) Failing after 23s
All Builds / Qtk (-DCMAKE_PREFIX_PATH=/home/runner/work/qtk/Qt/$QT_VERSION/gcc_64/ $CONFIG, -j $(nproc), macos-latest) (push) Has been cancelled
All Builds / Qtk (-DCMAKE_PREFIX_PATH=D:/a/qtk/qtk/Qt/$QT_VERSION/mingw81_64/ $CONFIG, , windows-latest) (push) Has been cancelled
All Builds / Qtk-Library (-DCMAKE_PREFIX_PATH=/home/runner/work/qtk/Qt/$QT_VERSION/gcc_64/ $CONFIG, -j $(nproc), macos-latest) (push) Has been cancelled
All Builds / Qtk-Library (-DCMAKE_PREFIX_PATH=D:/a/qtk/qtk/Qt/$QT_VERSION/mingw81_64/ $CONFIG, , windows-latest) (push) Has been cancelled
All Builds / Qtk-Plugins (-DCMAKE_PREFIX_PATH=/home/runner/work/qtk/Qt/$QT_VERSION/gcc_64/ $CONFIG, -j $(nproc), macos-latest) (push) Has been cancelled
All Builds / Qtk-Plugins (-DCMAKE_PREFIX_PATH=D:/a/qtk/qtk/Qt/$QT_VERSION/mingw81_64/ $CONFIG, , windows-latest) (push) Has been cancelled
All Builds / Qtk-Assimp-Targets (-DCMAKE_PREFIX_PATH=/home/runner/work/qtk/Qt/$QT_VERSION/gcc_64/, macos-latest) (push) Has been cancelled
46 lines
1.8 KiB
C++
46 lines
1.8 KiB
C++
/*##############################################################################
|
|
## Author: Shaun Reed ##
|
|
## Legal: All Content (c) 2023 Shaun Reed, all rights reserved ##
|
|
## About: Collection of widget plugins for Qt Designer ##
|
|
## ##
|
|
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
|
|
################################################################################
|
|
*/
|
|
|
|
#include "widgetplugincollection.h"
|
|
#include "debugconsole.h"
|
|
#include "qtkwidget.h"
|
|
#include "toolbox.h"
|
|
#include "treeview.h"
|
|
#include "widgetplugin.h"
|
|
|
|
/*******************************************************************************
|
|
* Constructors, Destructors
|
|
******************************************************************************/
|
|
|
|
WidgetPluginCollection::WidgetPluginCollection(QObject * parent) :
|
|
QObject(parent), m_collectionName("Qtk Widget Collection")
|
|
{
|
|
m_collection = {
|
|
new WidgetPlugin(
|
|
m_collectionName, "Qtk::QtkWidget", "qtkwidget.h",
|
|
[](QWidget * parent) { return new Qtk::QtkWidget(parent); }),
|
|
new WidgetPlugin(
|
|
m_collectionName, "Qtk::TreeView", "treeview.h",
|
|
[](QWidget * parent) { return new Qtk::TreeView(parent); }),
|
|
new WidgetPlugin(
|
|
m_collectionName, "Qtk::ToolBox", "toolbox.h",
|
|
[](QWidget * parent) { return new Qtk::ToolBox(parent); }),
|
|
};
|
|
}
|
|
|
|
/*******************************************************************************
|
|
* Public Methods
|
|
******************************************************************************/
|
|
|
|
QList<QDesignerCustomWidgetInterface *> WidgetPluginCollection::customWidgets()
|
|
const
|
|
{
|
|
return m_collection;
|
|
}
|