KIO

kfilewidgetdocktitlebar.cpp
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(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"
PM_DockWidgetTitleBarButtonMargin
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.