]>
cloud.milkyroute.net Git - dolphin.git/blob - src/search/barsecondrowflowlayout.h
2 SPDX-FileCopyrightText: 2025 Felix Ernst <felixernst@kde.org>
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 #ifndef BARSECONDROWFLOWLAYOUT_H
8 #define BARSECONDROWFLOWLAYOUT_H
16 * @brief The layout for all Search::Bar contents which are not in the first row.
18 * For left-to-right languages the search location buttons are kept left-aligned while the chips are right-aligned. When there is not enough space for all the
19 * widgts in the current row, a new row is started and the Search::Bar is notified that it needs to resize itself.
21 class BarSecondRowFlowLayout
: public QLayout
26 explicit BarSecondRowFlowLayout ( QWidget
* parent
);
27 ~ BarSecondRowFlowLayout ();
29 void addItem ( QLayoutItem
* item
) override
;
30 Qt :: Orientations
expandingDirections () const override
;
31 bool hasHeightForWidth () const override
;
32 int count () const override
;
33 QLayoutItem
* itemAt ( int index
) const override
;
34 QSize
minimumSize () const override
;
35 void setGeometry ( const QRect
& rect
) override
;
36 QSize
sizeHint () const override
;
37 QLayoutItem
* takeAt ( int index
) override
;
40 void heightHintChanged ();
43 QList
< QLayoutItem
*> itemList
;
48 #endif // BARSECONDROWFLOWLAYOUT_H