File indexing completed on 2025-01-19 03:57:49
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2017-05-25 0007 * Description : a stand alone tool to browse a web page. 0008 * 0009 * SPDX-FileCopyrightText: 2017-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 // Qt includes 0016 #include "digikam_config.h" 0017 0018 #include <QApplication> 0019 #include <QUrl> 0020 0021 // Local includes 0022 0023 #include "digikam_debug.h" 0024 #include "webbrowserdlg.h" 0025 0026 using namespace Digikam; 0027 0028 int main(int argc, char* argv[]) 0029 { 0030 QApplication a(argc, argv); 0031 0032 if (argc == 1) 0033 { 0034 qCDebug(DIGIKAM_TESTS_LOG) << "browser - web page url to show"; 0035 qCDebug(DIGIKAM_TESTS_LOG) << "Usage: url top open"; 0036 return -1; 0037 } 0038 0039 WebBrowserDlg browser(QUrl(QString::fromUtf8(argv[1])), nullptr); 0040 browser.show(); 0041 0042 return a.exec(); 0043 }