Changeset View
Changeset View
Standalone View
Standalone View
krusader/Konfigurator/krresulttable.cpp
Show First 20 Lines • Show All 189 Lines • ▼ Show 20 Line(s) | |||||
190 | { | 190 | { | ||
191 | auto* arch = dynamic_cast<Archiver*>(search); | 191 | auto* arch = dynamic_cast<Archiver*>(search); | ||
192 | 192 | | |||
193 | // Name column | 193 | // Name column | ||
194 | KUrlLabel *urlLabel = new KUrlLabel(arch->getWebsite(), arch->getSearchName(), this); | 194 | KUrlLabel *urlLabel = new KUrlLabel(arch->getWebsite(), arch->getSearchName(), this); | ||
195 | urlLabel->setContentsMargins(5, 5, 5, 5); | 195 | urlLabel->setContentsMargins(5, 5, 5, 5); | ||
196 | urlLabel->setAlignment(Qt::AlignTop); | 196 | urlLabel->setAlignment(Qt::AlignTop); | ||
197 | grid->addWidget(urlLabel, _numRows, 0); | 197 | grid->addWidget(urlLabel, _numRows, 0); | ||
198 | connect(urlLabel, QOverload<const QString &>::of(&KUrlLabel::leftClickedUrl), | 198 | connect(urlLabel, static_cast<void (KUrlLabel::*)(const QString &)>(&KUrlLabel::leftClickedUrl), | ||
199 | this, &KrArchiverResultTable::website); | 199 | this, &KrArchiverResultTable::website); | ||
200 | _label = urlLabel; | 200 | _label = urlLabel; | ||
201 | 201 | | |||
202 | // Found column | 202 | // Found column | ||
203 | _label = new QLabel(arch->getPath(), this); | 203 | _label = new QLabel(arch->getPath(), this); | ||
204 | _label->setContentsMargins(5, 5, 5, 5); | 204 | _label->setContentsMargins(5, 5, 5, 5); | ||
205 | grid->addWidget(_label, _numRows, 1); | 205 | grid->addWidget(_label, _numRows, 1); | ||
206 | 206 | | |||
▲ Show 20 Lines • Show All 133 Lines • ▼ Show 20 Line(s) | 328 | { | |||
340 | auto * toolBox = new QVBoxLayout(toolBoxWidget); | 340 | auto * toolBox = new QVBoxLayout(toolBoxWidget); | ||
341 | 341 | | |||
342 | for (auto & _app : _apps) { | 342 | for (auto & _app : _apps) { | ||
343 | auto* l = new KUrlLabel(_app->getWebsite(), _app->getAppName(), toolBoxWidget); | 343 | auto* l = new KUrlLabel(_app->getWebsite(), _app->getAppName(), toolBoxWidget); | ||
344 | toolBox->addWidget(l); | 344 | toolBox->addWidget(l); | ||
345 | 345 | | |||
346 | l->setAlignment(Qt::AlignLeft | Qt::AlignTop); | 346 | l->setAlignment(Qt::AlignLeft | Qt::AlignTop); | ||
347 | l->setContentsMargins(5, 5, 5, 5); | 347 | l->setContentsMargins(5, 5, 5, 5); | ||
348 | connect(l, QOverload<const QString &>::of(&KUrlLabel::leftClickedUrl), this, &KrToolResultTable::website); | 348 | connect(l, static_cast<void (KUrlLabel::*)(const QString &)>(&KUrlLabel::leftClickedUrl), | ||
349 | this, &KrToolResultTable::website); | ||||
349 | } | 350 | } | ||
350 | grid->addWidget(toolBoxWidget, _numRows, 1); | 351 | grid->addWidget(toolBoxWidget, _numRows, 1); | ||
351 | 352 | | |||
352 | // Found column | 353 | // Found column | ||
353 | QWidget* vboxWidget = new QWidget(this); | 354 | QWidget* vboxWidget = new QWidget(this); | ||
354 | auto * vbox = new QVBoxLayout(vboxWidget); | 355 | auto * vbox = new QVBoxLayout(vboxWidget); | ||
355 | 356 | | |||
356 | for (auto & _app : _apps) { | 357 | for (auto & _app : _apps) { | ||
Show All 38 Lines |