Warning, file /utilities/okteta/kasten/controllers/utils/labelledtoolbarwidget.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of the Okteta Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2022 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #include "labelledtoolbarwidget.hpp" 0010 0011 // Qt 0012 #include <QLabel> 0013 #include <QHBoxLayout> 0014 0015 namespace Kasten { 0016 0017 LabelledToolBarWidget::LabelledToolBarWidget(QLabel* label, 0018 QWidget* widget, 0019 QWidget* parent) 0020 : QWidget(parent) 0021 { 0022 auto* layout = new QHBoxLayout(); 0023 layout->setContentsMargins(0, 0, 0, 0); 0024 0025 label->setBuddy(widget); 0026 0027 layout->addWidget(label); 0028 layout->addWidget(widget); 0029 0030 setLayout(layout); 0031 } 0032 0033 } 0034 0035 #include "moc_labelledtoolbarwidget.cpp"