Changeset View
Changeset View
Standalone View
Standalone View
addons/katebuild-plugin/UrlInserter.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 32 | { | |||
---|---|---|---|---|---|
43 | 43 | | |||
44 | 44 | | |||
45 | QHBoxLayout* layout = new QHBoxLayout(this); | 45 | QHBoxLayout* layout = new QHBoxLayout(this); | ||
46 | layout->setContentsMargins(0,0,0,0); | 46 | layout->setContentsMargins(0,0,0,0); | ||
47 | layout->setSpacing(0); | 47 | layout->setSpacing(0); | ||
48 | layout->addWidget(m_lineEdit); | 48 | layout->addWidget(m_lineEdit); | ||
49 | layout->addWidget(m_toolButton); | 49 | layout->addWidget(m_toolButton); | ||
50 | setFocusProxy(m_lineEdit); | 50 | setFocusProxy(m_lineEdit); | ||
51 | connect(m_toolButton, SIGNAL(clicked(bool)), this, SLOT(insertFolder())); | 51 | connect(m_toolButton, &QToolButton::clicked, this, &UrlInserter::insertFolder); | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | 54 | | |||
55 | void UrlInserter::insertFolder() | 55 | void UrlInserter::insertFolder() | ||
56 | { | 56 | { | ||
57 | QUrl startUrl; | 57 | QUrl startUrl; | ||
58 | if (QFileInfo(m_lineEdit->text()).exists()) { | 58 | if (QFileInfo(m_lineEdit->text()).exists()) { | ||
59 | startUrl.setPath(m_lineEdit->text()); | 59 | startUrl.setPath(m_lineEdit->text()); | ||
Show All 20 Lines |