File indexing completed on 2024-04-28 03:59:19

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 app(argc, argv);
0016 
0017     QWidget toplevel;
0018     QBoxLayout *mainbox = new QBoxLayout(QBoxLayout::TopToBottom, &toplevel);
0019     mainbox->setContentsMargins(10, 10, 10, 10);
0020 
0021     KSeparator *sep1 = new KSeparator(Qt::Vertical, &toplevel);
0022     mainbox->addWidget(sep1);
0023 
0024     KSeparator *sep2 = new KSeparator(Qt::Horizontal, &toplevel);
0025     mainbox->addWidget(sep2);
0026     mainbox->activate();
0027 
0028     toplevel.show();
0029     return app.exec();
0030 }