File indexing completed on 2025-01-19 03:53:14

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2018-06-29
0007  * Description : a tool to export images to Twitter social network
0008  *
0009  * SPDX-FileCopyrightText: 2018 by Tarek Talaat <tarektalaat93 at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #include "twitternewalbumdlg.h"
0016 
0017  // Local includes
0018 
0019 #include "digikam_debug.h"
0020 #include "twitteritem.h"
0021 
0022 namespace DigikamGenericTwitterPlugin
0023 {
0024 
0025 TwNewAlbumDlg::TwNewAlbumDlg(QWidget* const parent, const QString& toolName)
0026     : WSNewAlbumDialog(parent, toolName)
0027 {
0028     hideDateTime();
0029     hideDesc();
0030     hideLocation();
0031     getMainWidget()->setMinimumSize(300, 0);
0032 }
0033 
0034 TwNewAlbumDlg::~TwNewAlbumDlg()
0035 {
0036 }
0037 
0038 void TwNewAlbumDlg::getAlbumProperties(TwAlbum& album)
0039 {
0040     album.title       = getTitleEdit()->text();
0041     album.description = getDescEdit()->toPlainText();
0042 }
0043 
0044 } // namespace DigikamGenericTwitterPlugin
0045 
0046 #include "moc_twitternewalbumdlg.cpp"