1.1 --- a/findwindow.cpp Tue Nov 17 08:24:59 2009 +0000
1.2 +++ b/findwindow.cpp Wed Nov 25 10:58:21 2009 +0000
1.3 @@ -8,24 +8,25 @@
1.4 extern QString vymName;
1.5
1.6 FindWindow::FindWindow(QWidget* parent)
1.7 - : QGroupBox( tr("Find"), parent )
1.8 + //: QGroupBox( tr("Find"), parent )
1.9
1.10 {
1.11 - setWindowTitle(vymName + " - " +tr("Find Text"));
1.12 + //setWindowTitle(vymName + " - " +tr("Find Text"));
1.13
1.14 QVBoxLayout* mainLayout = new QVBoxLayout;
1.15
1.16 QHBoxLayout *row1Layout = new QHBoxLayout;
1.17 + /*
1.18 // Create a Label
1.19 QLabel* label = new QLabel;
1.20 label->setText( tr("Text to find:"));
1.21 row1Layout->addWidget( label );
1.22 -
1.23 + */
1.24
1.25 // Create LineEdit (here QComboBox)
1.26 QHBoxLayout *row2Layout = new QHBoxLayout;
1.27 findcombo = new QComboBox;
1.28 - findcombo->setMinimumWidth(150);
1.29 + findcombo->setMinimumWidth(250);
1.30 findcombo->setEditable(true);
1.31 connect ( findcombo, SIGNAL( highlighted(int) ),
1.32 this, SLOT( findPressed() ) );
1.33 @@ -35,17 +36,17 @@
1.34 row2Layout->addWidget(findcombo);
1.35
1.36 // Create Buttons
1.37 - QHBoxLayout *row3Layout = new QHBoxLayout;
1.38 + //QHBoxLayout *row3Layout = new QHBoxLayout;
1.39 clearbutton = new QPushButton;
1.40 clearbutton->setText(tr("Clear"));
1.41 connect ( clearbutton, SIGNAL( clicked() ), this, SLOT( clearLineEdit() ) );
1.42 - row3Layout->addWidget (clearbutton);
1.43 + row2Layout->addWidget (clearbutton);
1.44
1.45 cancelbutton = new QPushButton;
1.46 cancelbutton->setText(tr("Cancel"));
1.47 cancelbutton->setShortcut (Qt::Key_Escape);
1.48 connect ( cancelbutton, SIGNAL( clicked() ), this, SLOT( cancelPressed() ) );
1.49 - row3Layout->addWidget (cancelbutton);
1.50 + row2Layout->addWidget (cancelbutton);
1.51
1.52 findbutton = new QPushButton;
1.53 findbutton->setText (tr("Find"));
1.54 @@ -53,12 +54,12 @@
1.55 findbutton->setShortcut (Qt::Key_Return);
1.56 connect ( findbutton, SIGNAL( clicked() ), this, SLOT( findPressed() ) );
1.57
1.58 - row3Layout->addStretch(2);
1.59 - row3Layout->addWidget(findbutton);
1.60 + //row2Layout->addStretch(2);
1.61 + row2Layout->addWidget(findbutton);
1.62
1.63 mainLayout->addLayout (row1Layout);
1.64 mainLayout->addLayout (row2Layout);
1.65 - mainLayout->addLayout (row3Layout);
1.66 + //mainLayout->addLayout (row3Layout);
1.67 setLayout (mainLayout);
1.68 }
1.69