MCPcopy Create free account
hub / github.com/cutechess/cutechess / PathLineEdit

Method PathLineEdit

projects/gui/src/pathlineedit.cpp:24–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include <QResizeEvent>
23
24PathLineEdit::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
39PathLineEdit::~PathLineEdit()
40{

Callers

nothing calls this directly

Calls 1

setTextMethod · 0.80

Tested by

no test coverage detected