File indexing completed on 2024-12-01 03:39:56
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2023 Harald Sitter <sitter@kde.org> 0003 0004 #include <QApplication> 0005 #include <QLabel> 0006 #include <QVBoxLayout> 0007 0008 #include <kcountryflagemojiiconengine.h> 0009 0010 using namespace Qt::Literals::StringLiterals; 0011 0012 int main(int argc, char **argv) 0013 { 0014 QApplication app(argc, argv); 0015 0016 QWidget widget; 0017 widget.setWindowIcon(QIcon(new KCountryFlagEmojiIconEngine("UN"))); 0018 widget.setLayout(new QVBoxLayout); 0019 0020 { 0021 auto l = new QLabel(&widget); 0022 l->setMinimumSize(512, 512); 0023 l->setPixmap(QIcon(new KCountryFlagEmojiIconEngine("GB-SCT")).pixmap(512, 512)); 0024 widget.layout()->addWidget(l); 0025 } 0026 0027 { 0028 auto l = new QLabel(&widget); 0029 l->setMinimumSize(512, 512); 0030 l->setPixmap(QIcon(new KCountryFlagEmojiIconEngine("AT")).pixmap(512, 512)); 0031 widget.layout()->addWidget(l); 0032 } 0033 0034 widget.show(); 0035 0036 return app.exec(); 0037 }