File indexing completed on 2022-11-23 10:29:24

0001 #include <QApplication>
0002 #include <keditlistbox.h>
0003 #include <kcombobox.h>
0004 
0005 int main(int argc, char **argv)
0006 {
0007     QApplication::setApplicationName("keditlistboxtest");
0008 
0009     QApplication app(argc, argv);
0010 
0011     KEditListBox::CustomEditor editor(new KComboBox(true, nullptr));
0012     KEditListBox *box = new KEditListBox(QLatin1String("KEditListBox"),
0013                                          editor);
0014 
0015     box->insertItem(QLatin1String("Test"));
0016     box->insertItem(QLatin1String("for"));
0017     box->insertItem(QLatin1String("this"));
0018     box->insertItem(QLatin1String("KEditListBox"));
0019     box->insertItem(QLatin1String("Widget"));
0020     box->show();
0021 
0022     return app.exec();
0023 }