comparison src/findwidget.cpp @ 561:1ff2a1bf0a40

Add a cancel button to the progress bar
author Chris Cannam
date Mon, 27 Feb 2012 17:25:50 +0000
parents 533519ebc0cb
children 51887087f1ae
comparison
equal deleted inserted replaced
560:533519ebc0cb 561:1ff2a1bf0a40
31 31
32 QToolButton *button = new QToolButton(); 32 QToolButton *button = new QToolButton();
33 layout->addWidget(button, 0, 0); 33 layout->addWidget(button, 0, 0);
34 button->setText(tr("Find...")); 34 button->setText(tr("Find..."));
35 button->setToolButtonStyle(Qt::ToolButtonTextOnly); 35 button->setToolButtonStyle(Qt::ToolButtonTextOnly);
36 // button->setAutoRaise(true);
37 connect(button, SIGNAL(clicked()), this, SLOT(buttonPressed())); 36 connect(button, SIGNAL(clicked()), this, SLOT(buttonPressed()));
38 37
39 m_lineEdit = new QLineEdit(); 38 m_lineEdit = new QLineEdit();
40 layout->addWidget(m_lineEdit, 0, 1); 39 layout->addWidget(m_lineEdit, 0, 1);
41 40