Changeset View
Changeset View
Standalone View
Standalone View
projectmanagers/qmake/qmakemanager.cpp
Show First 20 Lines • Show All 462 Lines • ▼ Show 20 Line(s) | 457 | { | |||
---|---|---|---|---|---|
463 | 463 | | |||
464 | if (curdir.exists(QStringLiteral(".qmake.cache"))) { | 464 | if (curdir.exists(QStringLiteral(".qmake.cache"))) { | ||
465 | qCDebug(KDEV_QMAKE) << "Found QMake cache in " << curdir.absolutePath(); | 465 | qCDebug(KDEV_QMAKE) << "Found QMake cache in " << curdir.absolutePath(); | ||
466 | return new QMakeCache(curdir.canonicalPath() + "/.qmake.cache"); | 466 | return new QMakeCache(curdir.canonicalPath() + "/.qmake.cache"); | ||
467 | } | 467 | } | ||
468 | return nullptr; | 468 | return nullptr; | ||
469 | } | 469 | } | ||
470 | 470 | | |||
471 | ContextMenuExtension QMakeProjectManager::contextMenuExtension(Context* context) | 471 | ContextMenuExtension QMakeProjectManager::contextMenuExtension(Context* context, QWidget* parent) | ||
472 | { | 472 | { | ||
473 | Q_UNUSED(parent); | ||||
474 | | ||||
473 | ContextMenuExtension ext; | 475 | ContextMenuExtension ext; | ||
474 | 476 | | |||
475 | if (context->hasType(Context::ProjectItemContext)) { | 477 | if (context->hasType(Context::ProjectItemContext)) { | ||
476 | ProjectItemContext* pic = dynamic_cast<ProjectItemContext*>(context); | 478 | ProjectItemContext* pic = dynamic_cast<ProjectItemContext*>(context); | ||
477 | Q_ASSERT(pic); | 479 | Q_ASSERT(pic); | ||
478 | if (pic->items().isEmpty()) { | 480 | if (pic->items().isEmpty()) { | ||
479 | return ext; | 481 | return ext; | ||
480 | } | 482 | } | ||
Show All 31 Lines |