diff -r 60e2297bab39 -r b1e3a4d88f13 findwindow.cpp --- a/findwindow.cpp Tue Jan 24 15:09:48 2006 +0000 +++ b/findwindow.cpp Tue Sep 05 10:03:29 2006 +0000 @@ -1,22 +1,26 @@ #include +//Added by qt3to4: +#include +#include +#include #include "findwindow.h" #include "version.h" FindWindow::FindWindow(QWidget* parent, const char* name) - : QGroupBox( 0, Horizontal, "Find", parent, name ) + : Q3GroupBox( 0, Qt::Horizontal, "Find", parent, name ) { setCaption (__VYM " - " +tr("Find Text")); //resize (180,130); move (130,130); - setMargin( 100 ); + //FIXME not avail in QT4 setMargin( 100 ); - QVBoxLayout* box = new QVBoxLayout( layout() ); + Q3VBoxLayout* box = new Q3VBoxLayout( layout() ); - QHBoxLayout *row1 = new QHBoxLayout( box ); + Q3HBoxLayout *row1 = new Q3HBoxLayout( box ); row1->setMargin( 10 ); // Create a Label @@ -24,7 +28,7 @@ row1->addWidget( label ); // Create LineEdit (here QComboBox) - QHBoxLayout *row2 = new QHBoxLayout( box ); + Q3HBoxLayout *row2 = new Q3HBoxLayout( box ); row2->setMargin( 10 ); findcombo = new QComboBox( true, this ); findcombo->setMinimumWidth(150); @@ -36,7 +40,7 @@ //findcombo->insertItem( "Normal", -1 ); // Create Buttons - QHBoxLayout *row3 = new QHBoxLayout( box ); + Q3HBoxLayout *row3 = new Q3HBoxLayout( box ); row3->setMargin( 10 ); clearbutton = new QPushButton (tr("Clear"),this); connect ( clearbutton, SIGNAL( clicked() ), @@ -47,7 +51,7 @@ row3->addItem(si1); cancelbutton = new QPushButton (tr("Cancel"),this); - cancelbutton->setAccel (Key_Escape); + cancelbutton->setAccel (Qt::Key_Escape); connect ( cancelbutton, SIGNAL( clicked() ), this, SLOT( cancelPressed() ) ); row3->addWidget (cancelbutton);