File indexing completed on 2024-05-12 11:59:38

0001 /*
0002     SPDX-FileCopyrightText: 1997 Michael Roth <mroth@wirlweb.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include <QApplication>
0008 #include <QBoxLayout>
0009 #include <QWidget>
0010 
0011 #include "kseparator.h"
0012 
0013 int main(int argc, char **argv)
0014 {
0015     QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
0016     QApplication app(argc, argv);
0017 
0018     QWidget toplevel;
0019     QBoxLayout *mainbox = new QBoxLayout(QBoxLayout::TopToBottom, &toplevel);
0020     mainbox->setContentsMargins(10, 10, 10, 10);
0021 
0022     KSeparator *sep1 = new KSeparator(Qt::Vertical, &toplevel);
0023     mainbox->addWidget(sep1);
0024 
0025     KSeparator *sep2 = new KSeparator(Qt::Horizontal, &toplevel);
0026     mainbox->addWidget(sep2);
0027     mainbox->activate();
0028 
0029     toplevel.show();
0030     return app.exec();
0031 }