1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2006 Hamish Rodda <rodda@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-only
6*/
7
8#include "ktoolbarspaceraction.h"
9
10#include <QWidget>
11
12class KToolBarSpacerActionPrivate
13{
14};
15
16KToolBarSpacerAction::KToolBarSpacerAction(QObject *parent)
17 : QWidgetAction(parent)
18 , d(nullptr)
19{
20}
21
22KToolBarSpacerAction::~KToolBarSpacerAction() = default;
23
24QWidget *KToolBarSpacerAction::createWidget(QWidget *parent)
25{
26 if (!parent) {
27 return QWidgetAction::createWidget(parent);
28 }
29
30 QWidget *spacer = new QWidget(parent);
31 spacer->setSizePolicy(hor: QSizePolicy::MinimumExpanding, ver: QSizePolicy::Fixed);
32 return spacer;
33}
34
35#include "moc_ktoolbarspaceraction.cpp"
36

source code of kwidgetsaddons/src/ktoolbarspaceraction.cpp