findwindow.cpp
changeset 382 8b0ab4c0f767
parent 370 97f5d07bf47d
child 403 7c3ee77f4449
     1.1 --- a/findwindow.cpp	Tue Sep 05 11:53:54 2006 +0000
     1.2 +++ b/findwindow.cpp	Thu Sep 14 11:38:17 2006 +0000
     1.3 @@ -11,8 +11,6 @@
     1.4  
     1.5  {
     1.6  	setWindowTitle(__VYM " - " +tr("Find Text"));
     1.7 -	//resize (180,130);
     1.8 -	//move (130,130);
     1.9  
    1.10      QVBoxLayout* mainLayout = new QVBoxLayout;
    1.11      
    1.12 @@ -32,7 +30,6 @@
    1.13  		this, SLOT( findPressed() ) );
    1.14  	connect ( findcombo, SIGNAL( textChanged(const QString &) ), 
    1.15  		this, SLOT( findTextChanged(const QString&) ) );
    1.16 -    //findcombo->insertItem( "Normal", -1 );
    1.17  
    1.18  	row2Layout->addWidget(findcombo);
    1.19  
    1.20 @@ -43,21 +40,11 @@
    1.21  	connect ( clearbutton, SIGNAL( clicked() ), this, SLOT( clearLineEdit() ) );
    1.22  	row3Layout->addWidget (clearbutton);
    1.23  	
    1.24 -	/*
    1.25 -	QSpacerItem *si1= new QSpacerItem (10,0,QSizePolicy::Minimum, QSizePolicy::Expanding );
    1.26 -	row3Layout->addItem(si1);
    1.27 -	*/
    1.28 -	
    1.29  	cancelbutton = new QPushButton;
    1.30  	cancelbutton->setText(tr("Cancel"));
    1.31  	cancelbutton->setShortcut (Qt::Key_Escape);
    1.32  	connect ( cancelbutton, SIGNAL( clicked() ), this, SLOT( cancelPressed() ) );
    1.33  	row3Layout->addWidget (cancelbutton);
    1.34 -
    1.35 -/*
    1.36 -	QSpacerItem *si2= new QSpacerItem (10,0,QSizePolicy::Fixed, QSizePolicy::Fixed);
    1.37 -	row3Layout->addItem(si2);
    1.38 -	*/
    1.39  	
    1.40  	findbutton = new QPushButton;
    1.41  	findbutton->setText (tr("Find"));
    1.42 @@ -65,6 +52,7 @@
    1.43  	findbutton->setShortcut (Qt::Key_Return);
    1.44  	connect ( findbutton, SIGNAL( clicked() ), this, SLOT( findPressed() ) );
    1.45  
    1.46 +	row3Layout->addStretch(2);
    1.47  	row3Layout->addWidget(findbutton);
    1.48  
    1.49  	mainLayout->addLayout (row1Layout);