File indexing completed on 2025-01-05 04:00:06
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2008-01-20 0007 * Description : User interface for searches 0008 * 0009 * SPDX-FileCopyrightText: 2008-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de> 0010 * SPDX-FileCopyrightText: 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #include "searchgroup_p.h" 0017 0018 namespace Digikam 0019 { 0020 0021 RadioButtonHBox::RadioButtonHBox(QWidget* const left, QWidget* const right, Qt::LayoutDirection dir) 0022 : QHBoxLayout() 0023 { 0024 if (dir == Qt::RightToLeft) 0025 { 0026 addWidget(right, Qt::AlignRight); 0027 addWidget(left); 0028 } 0029 else 0030 { 0031 addWidget(left); 0032 addWidget(right, Qt::AlignLeft); 0033 } 0034 0035 setSpacing(0); 0036 } 0037 0038 } // namespace Digikam 0039 0040 #include "moc_searchgroup_p.cpp"