File indexing completed on 2024-10-13 03:38:21

0001 /*
0002     SPDX-FileCopyrightText: 2018 Kai Uwe Broulik <kde@privat.broulik.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "kfilewidgetdocktitlebar_p.h"
0008 
0009 #include <QStyle>
0010 
0011 using namespace KDEPrivate;
0012 
0013 KFileWidgetDockTitleBar::KFileWidgetDockTitleBar(QWidget *parent)
0014     : QWidget(parent)
0015 {
0016 }
0017 
0018 KFileWidgetDockTitleBar::~KFileWidgetDockTitleBar()
0019 {
0020 }
0021 
0022 QSize KFileWidgetDockTitleBar::minimumSizeHint() const
0023 {
0024     const int border = style()->pixelMetric(QStyle::PM_DockWidgetTitleBarButtonMargin);
0025     return QSize(border, border);
0026 }
0027 
0028 QSize KFileWidgetDockTitleBar::sizeHint() const
0029 {
0030     return minimumSizeHint();
0031 }
0032 
0033 #include "moc_kfilewidgetdocktitlebar_p.cpp"