2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include "simplestyleplugin.h"
|
|
|
|
#include "simplestyle.h"
|
|
|
|
|
|
|
|
//! [0]
|
|
|
|
QStringList SimpleStylePlugin::keys() const
|
|
|
|
{
|
2019-09-06 18:27:33 +00:00
|
|
|
return {"SimpleStyle"};
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
//! [0]
|
|
|
|
|
|
|
|
//! [1]
|
|
|
|
QStyle *SimpleStylePlugin::create(const QString &key)
|
|
|
|
{
|
|
|
|
if (key.toLower() == "simplestyle")
|
|
|
|
return new SimpleStyle;
|
2019-09-06 18:27:33 +00:00
|
|
|
return nullptr;
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
//! [1]
|