File indexing completed on 2025-01-05 03:53:24

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2013-11-18
0007  * Description : a tool to export images to Dropbox web service
0008  *
0009  * SPDX-FileCopyrightText: 2013      by Pankaj Kumar <me at panks dot me>
0010  * SPDX-FileCopyrightText: 2013-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 "dbnewalbumdlg.h"
0017 
0018 // Local includes
0019 
0020 #include "digikam_debug.h"
0021 #include "dbitem.h"
0022 
0023 namespace DigikamGenericDropBoxPlugin
0024 {
0025 
0026 DBNewAlbumDlg::DBNewAlbumDlg(QWidget* const parent, const QString& toolName)
0027     : WSNewAlbumDialog(parent, toolName)
0028 {
0029     hideDateTime();
0030     hideDesc();
0031     hideLocation();
0032     getMainWidget()->setMinimumSize(300, 0);
0033 }
0034 
0035 DBNewAlbumDlg::~DBNewAlbumDlg()
0036 {
0037 }
0038 
0039 void DBNewAlbumDlg::getFolderTitle(DBFolder& folder)
0040 {
0041     folder.title = QLatin1Char('/') + getTitleEdit()->text();
0042     qCDebug(DIGIKAM_WEBSERVICES_LOG) << "getFolderTitle:" << folder.title;
0043 }
0044 
0045 } // namespace DigikamGenericDropBoxPlugin
0046 
0047 #include "moc_dbnewalbumdlg.cpp"