| 22 | #include <QResizeEvent> |
| 23 | |
| 24 | PathLineEdit::PathLineEdit(PathType pathType, QWidget* parent) |
| 25 | : QLineEdit(parent), |
| 26 | m_pathType(pathType) |
| 27 | { |
| 28 | m_browseBtn = new QToolButton(this); |
| 29 | m_browseBtn->setText("..."); |
| 30 | |
| 31 | // Focus must stay on the QLineEdit, otherwise the editor |
| 32 | // will be closed prematurely |
| 33 | m_browseBtn->setCursor(Qt::ArrowCursor); |
| 34 | m_browseBtn->setFocusPolicy(Qt::NoFocus); |
| 35 | |
| 36 | connect(m_browseBtn, SIGNAL(clicked()), this, SLOT(browse())); |
| 37 | } |
| 38 | |
| 39 | PathLineEdit::~PathLineEdit() |
| 40 | { |