1/*
2 SPDX-FileCopyrightText: 2018 Kai Uwe Broulik <kde@privat.broulik.de>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "kfilewidgetdocktitlebar_p.h"
8
9#include <QStyle>
10
11using namespace KDEPrivate;
12
13KFileWidgetDockTitleBar::KFileWidgetDockTitleBar(QWidget *parent)
14 : QWidget(parent)
15{
16}
17
18KFileWidgetDockTitleBar::~KFileWidgetDockTitleBar()
19{
20}
21
22QSize KFileWidgetDockTitleBar::minimumSizeHint() const
23{
24 const int border = style()->pixelMetric(metric: QStyle::PM_DockWidgetTitleBarButtonMargin);
25 return QSize(border, border);
26}
27
28QSize KFileWidgetDockTitleBar::sizeHint() const
29{
30 return minimumSizeHint();
31}
32
33#include "moc_kfilewidgetdocktitlebar_p.cpp"
34

source code of kio/src/filewidgets/kfilewidgetdocktitlebar.cpp