Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/krspwidgets.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | #include <KWidgetsAddons/KCursor> | 44 | #include <KWidgetsAddons/KCursor> | ||
45 | 45 | | |||
46 | ///////////////////// initiation of the static members //////////////////////// | 46 | ///////////////////// initiation of the static members //////////////////////// | ||
47 | QStringList KRSpWidgets::maskList; | 47 | QStringList KRSpWidgets::maskList; | ||
48 | 48 | | |||
49 | /////////////////////////////////////////////////////////////////////////////// | 49 | /////////////////////////////////////////////////////////////////////////////// | ||
50 | 50 | | |||
51 | KRSpWidgets::KRSpWidgets() | 51 | KRSpWidgets::KRSpWidgets() | ||
52 | { | 52 | = default; | ||
53 | } | | |||
54 | 53 | | |||
55 | KRQuery KRSpWidgets::getMask(QString caption, bool nameOnly, QWidget * parent) | 54 | KRQuery KRSpWidgets::getMask(const QString& caption, bool nameOnly, QWidget * parent) | ||
56 | { | 55 | { | ||
57 | if (!nameOnly) { | 56 | if (!nameOnly) { | ||
58 | return FilterTabs::getQuery(parent); | 57 | return FilterTabs::getQuery(parent); | ||
59 | } else { | 58 | } else { | ||
60 | QPointer<KRMaskChoiceSub> p = new KRMaskChoiceSub(parent); | 59 | QPointer<KRMaskChoiceSub> p = new KRMaskChoiceSub(parent); | ||
61 | p->setWindowTitle(caption); | 60 | p->setWindowTitle(caption); | ||
62 | p->exec(); | 61 | p->exec(); | ||
63 | QString selection = p->selection->currentText(); | 62 | QString selection = p->selection->currentText(); | ||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 74 | { | |||
130 | if (!password.isEmpty()) { | 129 | if (!password.isEmpty()) { | ||
131 | url.setPassword(password); | 130 | url.setPassword(password); | ||
132 | } | 131 | } | ||
133 | 132 | | |||
134 | delete p; | 133 | delete p; | ||
135 | return url; | 134 | return url; | ||
136 | } | 135 | } | ||
137 | 136 | | |||
138 | newFTPSub::newFTPSub() : newFTPGUI(0) | 137 | newFTPSub::newFTPSub() : newFTPGUI(nullptr) | ||
139 | { | 138 | { | ||
140 | url->setFocus(); | 139 | url->setFocus(); | ||
141 | setGeometry(krMainWindow->x() + krMainWindow->width() / 2 - width() / 2, | 140 | setGeometry(krMainWindow->x() + krMainWindow->width() / 2 - width() / 2, | ||
142 | krMainWindow->y() + krMainWindow->height() / 2 - height() / 2, width(), height()); | 141 | krMainWindow->y() + krMainWindow->height() / 2 - height() / 2, width(), height()); | ||
143 | } | 142 | } | ||
144 | 143 | | |||
145 | void newFTPSub::accept() | 144 | void newFTPSub::accept() | ||
146 | { | 145 | { | ||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |