Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/krdialogs.cpp
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Line(s) | 97 | KUrlRequesterDlgForCopy::KUrlRequesterDlgForCopy(const QUrl &urlName, const QString &_text, | |||
---|---|---|---|---|---|
98 | QWidget *parent, bool modal) | 98 | QWidget *parent, bool modal) | ||
99 | : QDialog(parent) | 99 | : QDialog(parent) | ||
100 | { | 100 | { | ||
101 | setWindowModality(modal ? Qt::WindowModal : Qt::NonModal); | 101 | setWindowModality(modal ? Qt::WindowModal : Qt::NonModal); | ||
102 | 102 | | |||
103 | auto *mainLayout = new QVBoxLayout; | 103 | auto *mainLayout = new QVBoxLayout; | ||
104 | setLayout(mainLayout); | 104 | setLayout(mainLayout); | ||
105 | 105 | | |||
106 | mainLayout->addWidget(new QLabel(_text)); | 106 | QLabel *label = new QLabel; | ||
nmel: Please replace lbl with label according to the coding style. | |||||
107 | label->setWordWrap(true); | ||||
108 | label->setText(_text); | ||||
109 | mainLayout->addWidget(label); | ||||
107 | 110 | | |||
108 | urlRequester_ = new KUrlRequester(urlName, this); | 111 | urlRequester_ = new KUrlRequester(urlName, this); | ||
109 | urlRequester_->setMinimumWidth(urlRequester_->sizeHint().width() * 3); | 112 | urlRequester_->setMinimumWidth(urlRequester_->sizeHint().width() * 3); | ||
110 | mainLayout->addWidget(urlRequester_); | 113 | mainLayout->addWidget(urlRequester_); | ||
111 | 114 | | |||
112 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel); | 115 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel); | ||
113 | mainLayout->addWidget(buttonBox); | 116 | mainLayout->addWidget(buttonBox); | ||
114 | okButton = buttonBox->button(QDialogButtonBox::Ok); | 117 | okButton = buttonBox->button(QDialogButtonBox::Ok); | ||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |
Please replace lbl with label according to the coding style.