Bug #13872 » wt_Composite_Impl_Style.patch
src/Wt/WBootstrap5Theme.C | ||
---|---|---|
|
||
#include "Wt/WBootstrap5Theme.h"
|
||
|
||
#include "Wt/WCompositeWidget.h"
|
||
#include "Wt/WAbstractItemView.h"
|
||
#include "Wt/WAbstractSpinBox.h"
|
||
#include "Wt/WApplication.h"
|
||
... | ... | |
if (!widget->isThemeStyleEnabled())
|
||
return;
|
||
|
||
{
|
||
auto composite = dynamic_cast<WCompositeWidget *>(widget);
|
||
if(composite)
|
||
{
|
||
widget = composite->implementation();
|
||
}
|
||
}
|
||
|
||
{
|
||
auto popup = dynamic_cast<WPopupWidget *>(widget);
|
||
if (popup) {
|
src/Wt/WCompositeWidget.h | ||
---|---|---|
#define WCOMPOSITE_WIDGET_H_
|
||
|
||
#include <Wt/WWidget.h>
|
||
#include "Wt/WBootstrap5Theme.h"
|
||
|
||
namespace Wt {
|
||
|
||
... | ... | |
*/
|
||
class WT_API WCompositeWidget : public WWidget
|
||
{
|
||
friend void WBootstrap5Theme::apply(WWidget *widget, DomElement& element,
|
||
int elementRole) const;
|
||
public:
|
||
/*! \brief Creates a %WCompositeWidget.
|
||
*
|