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 | |
11 | using namespace KDEPrivate; |
12 | |
13 | KFileWidgetDockTitleBar::KFileWidgetDockTitleBar(QWidget *parent) |
14 | : QWidget(parent) |
15 | { |
16 | } |
17 | |
18 | KFileWidgetDockTitleBar::~KFileWidgetDockTitleBar() |
19 | { |
20 | } |
21 | |
22 | QSize KFileWidgetDockTitleBar::minimumSizeHint() const |
23 | { |
24 | const int border = style()->pixelMetric(metric: QStyle::PM_DockWidgetTitleBarButtonMargin); |
25 | return QSize(border, border); |
26 | } |
27 | |
28 | QSize KFileWidgetDockTitleBar::sizeHint() const |
29 | { |
30 | return minimumSizeHint(); |
31 | } |
32 | |
33 | #include "moc_kfilewidgetdocktitlebar_p.cpp" |
34 |