diff -r 2a33304714ba -r f9f7922989d8 findwindow.cpp --- a/findwindow.cpp Tue Nov 17 08:24:59 2009 +0000 +++ b/findwindow.cpp Wed Nov 25 10:58:21 2009 +0000 @@ -8,24 +8,25 @@ extern QString vymName; FindWindow::FindWindow(QWidget* parent) - : QGroupBox( tr("Find"), parent ) + //: QGroupBox( tr("Find"), parent ) { - setWindowTitle(vymName + " - " +tr("Find Text")); + //setWindowTitle(vymName + " - " +tr("Find Text")); QVBoxLayout* mainLayout = new QVBoxLayout; QHBoxLayout *row1Layout = new QHBoxLayout; + /* // Create a Label QLabel* label = new QLabel; label->setText( tr("Text to find:")); row1Layout->addWidget( label ); - + */ // Create LineEdit (here QComboBox) QHBoxLayout *row2Layout = new QHBoxLayout; findcombo = new QComboBox; - findcombo->setMinimumWidth(150); + findcombo->setMinimumWidth(250); findcombo->setEditable(true); connect ( findcombo, SIGNAL( highlighted(int) ), this, SLOT( findPressed() ) ); @@ -35,17 +36,17 @@ row2Layout->addWidget(findcombo); // Create Buttons - QHBoxLayout *row3Layout = new QHBoxLayout; + //QHBoxLayout *row3Layout = new QHBoxLayout; clearbutton = new QPushButton; clearbutton->setText(tr("Clear")); connect ( clearbutton, SIGNAL( clicked() ), this, SLOT( clearLineEdit() ) ); - row3Layout->addWidget (clearbutton); + row2Layout->addWidget (clearbutton); cancelbutton = new QPushButton; cancelbutton->setText(tr("Cancel")); cancelbutton->setShortcut (Qt::Key_Escape); connect ( cancelbutton, SIGNAL( clicked() ), this, SLOT( cancelPressed() ) ); - row3Layout->addWidget (cancelbutton); + row2Layout->addWidget (cancelbutton); findbutton = new QPushButton; findbutton->setText (tr("Find")); @@ -53,12 +54,12 @@ findbutton->setShortcut (Qt::Key_Return); connect ( findbutton, SIGNAL( clicked() ), this, SLOT( findPressed() ) ); - row3Layout->addStretch(2); - row3Layout->addWidget(findbutton); + //row2Layout->addStretch(2); + row2Layout->addWidget(findbutton); mainLayout->addLayout (row1Layout); mainLayout->addLayout (row2Layout); - mainLayout->addLayout (row3Layout); + //mainLayout->addLayout (row3Layout); setLayout (mainLayout); }