summaryrefslogtreecommitdiffstats
path: root/tdeabc/tests/testaddresslineedit.cpp
blob: ee4513d980e436215ce1f1b5fb022f9c84225f2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <tdeaboutdata.h>
#include <tdeapplication.h>
#include <kdebug.h>
#include <tdelocale.h>
#include <tdecmdlineargs.h>

#include "addresslineedit.h"

using namespace TDEABC;

int main( int argc,char **argv )
{
  TDEAboutData aboutData( "testaddresslineedit",
                        I18N_NOOP( "Test Address LineEdit" ), "0.1" );
  TDECmdLineArgs::init( argc, argv, &aboutData );

  TDEApplication app;

  AddressLineEdit *lineEdit = new AddressLineEdit( 0 );

  lineEdit->show();
  app.setMainWidget( lineEdit );
  
  TQObject::connect( &app, TQ_SIGNAL( lastWindowClosed() ), &app, TQ_SLOT( quit() ) );

  app.exec();
  
  delete lineEdit;
}