Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
This file is part of the KDE libraries
|
||||
SPDX-FileCopyrightText: 2013 David Edmundson <davidedmundson@kde.org>
|
||||
|
||||
SPDX-License-Identifier: LGPL-2.0-only
|
||||
*/
|
||||
|
||||
#include <QApplication>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include <kfontrequester.h>
|
||||
|
||||
class KFontRequesterTest : public QWidget
|
||||
{
|
||||
public:
|
||||
KFontRequesterTest(QWidget *parent = nullptr)
|
||||
: QWidget(parent)
|
||||
{
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout(this);
|
||||
|
||||
KFontRequester *test1 = new KFontRequester(this);
|
||||
mainLayout->addWidget(test1);
|
||||
|
||||
KFontRequester *test2 = new KFontRequester(this);
|
||||
test2->setSampleText(QStringLiteral("This is different sample text"));
|
||||
test2->setTitle(QStringLiteral("A different title"));
|
||||
test2->setFont(QFont(QStringLiteral("comic-sans"), 12, 1));
|
||||
|
||||
mainLayout->addWidget(test2);
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QApplication::setApplicationName(QStringLiteral("kfontrequestertest"));
|
||||
QApplication app(argc, argv);
|
||||
|
||||
KFontRequesterTest *mainWidget = new KFontRequesterTest;
|
||||
mainWidget->show();
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
Reference in New Issue
Block a user