mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-28 21:02:51 +00:00
27 lines
789 B
C++
27 lines
789 B
C++
#include <kcmdlineargs.h>
|
|
#include <kaboutdata.h>
|
|
#include <kapplication.h>
|
|
#include <keditlistbox.h>
|
|
#include <kcombobox.h>
|
|
|
|
int main( int argc, char **argv )
|
|
{
|
|
KAboutData about("keditlistboxtest", 0, ki18n("keditlistboxtest"), "version");
|
|
KCmdLineArgs::init(argc, argv, &about);
|
|
|
|
KApplication app;
|
|
|
|
|
|
KEditListBox::CustomEditor editor( new KComboBox( true, 0 ) );
|
|
KEditListBox *box = new KEditListBox( QLatin1String("KEditListBox"),
|
|
editor );
|
|
|
|
box->insertItem( QLatin1String("Test") );
|
|
box->insertItem( QLatin1String("for") );
|
|
box->insertItem( QLatin1String("this") );
|
|
box->insertItem( QLatin1String("KEditListBox") );
|
|
box->insertItem( QLatin1String("Widget") );
|
|
box->show();
|
|
|
|
return app.exec();
|
|
}
|