diff -r 7a96bd401351 -r 699f28529079 findwindow.cpp --- a/findwindow.cpp Sun Jan 30 12:58:47 2005 +0000 +++ b/findwindow.cpp Tue Aug 15 12:01:14 2006 +0000 @@ -1,21 +1,26 @@ #include +//Added by qt3to4: +#include +#include +#include #include "findwindow.h" +#include "version.h" -FindWindow::FindWindow(QWidget* parent, const char* name, WFlags f) - : QGroupBox( 0, Horizontal, "Find", parent, name ) +FindWindow::FindWindow(QWidget* parent, const char* name) + : Q3GroupBox( 0, Qt::Horizontal, "Find", parent, name ) { - setCaption ("VYM - Find Text"); + 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 @@ -23,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); @@ -35,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() ), @@ -46,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);