|
a/src/qtgui/preview/pvmain.cpp |
|
b/src/qtgui/preview/pvmain.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: pvmain.cpp,v 1.3 2005-10-17 13:36:53 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: pvmain.cpp,v 1.4 2005-10-21 08:14:42 dockes Exp $ (C) 2005 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
|
4 |
|
5 |
#include <stdio.h>
|
5 |
#include <stdio.h>
|
6 |
#include <unistd.h>
|
6 |
#include <unistd.h>
|
7 |
|
7 |
|
|
... |
|
... |
49 |
newEd->setReadOnly( TRUE );
|
49 |
newEd->setReadOnly( TRUE );
|
50 |
newEd->setUndoRedoEnabled( FALSE );
|
50 |
newEd->setUndoRedoEnabled( FALSE );
|
51 |
newEd->setText(str);
|
51 |
newEd->setText(str);
|
52 |
|
52 |
|
53 |
w.pvTab->addTab(anon, "Tab 2");
|
53 |
w.pvTab->addTab(anon, "Tab 2");
|
|
|
54 |
#if QT_VERSION < 0x040000
|
|
|
55 |
a.setMainWidget(&w);
|
|
|
56 |
#endif
|
54 |
w.show();
|
57 |
w.show();
|
55 |
return a.exec();
|
58 |
return a.exec();
|
56 |
}
|
59 |
}
|