File indexing completed on 2024-12-22 03:46:49
0001 /* 0002 This file is part of the KTextTemplate library 0003 0004 SPDX-FileCopyrightText: 2010 Stephen Kelly <steveire@gmail.com> 0005 0006 SPDX-License-Identifier: LGPL-2.1-or-later 0007 0008 */ 0009 0010 #include "mainwindow.h" 0011 0012 #include "kdelocalizer.h" 0013 0014 #include <kaboutdata.h> 0015 #include <kapplication.h> 0016 #include <kcmdlineargs.h> 0017 0018 #include "ktexttemplate_paths.h" 0019 0020 #define TEMPLATE_DIR KTEXTTEMPLATE_TEMPLATE_PATH "/gettext/" 0021 0022 int main(int argc, char **argv) 0023 { 0024 const QByteArray &ba = QByteArray("contacts_kde"); 0025 const KLocalizedString name = ki18n("KTextTemplate KDE i18n example"); 0026 KAboutData aboutData(ba, ba, name, ba, name); 0027 KCmdLineArgs::init(argc, argv, &aboutData); 0028 0029 KApplication app; 0030 0031 AppMainWindow<KDELocalizer> win(TEMPLATE_DIR); 0032 win.show(); 0033 0034 app.exec(); 0035 }