Changeset View
Changeset View
Standalone View
Standalone View
plugins/cmake/cmakebuilddirchooser.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 43 | { | |||
---|---|---|---|---|---|
71 | connect(m_chooserUi->buildType, QOverload<const QString&>::of(&QComboBox::currentIndexChanged), | 71 | connect(m_chooserUi->buildType, QOverload<const QString&>::of(&QComboBox::currentIndexChanged), | ||
72 | this, &CMakeBuildDirChooser::updated); | 72 | this, &CMakeBuildDirChooser::updated); | ||
73 | connect(m_chooserUi->extraArguments, &KComboBox::editTextChanged, this, &CMakeBuildDirChooser::updated); | 73 | connect(m_chooserUi->extraArguments, &KComboBox::editTextChanged, this, &CMakeBuildDirChooser::updated); | ||
74 | connect(m_chooserUi->availableBuildDirs, QOverload<int>::of(&QComboBox::currentIndexChanged), | 74 | connect(m_chooserUi->availableBuildDirs, QOverload<int>::of(&QComboBox::currentIndexChanged), | ||
75 | this, &CMakeBuildDirChooser::adoptPreviousBuildDirectory); | 75 | this, &CMakeBuildDirChooser::adoptPreviousBuildDirectory); | ||
76 | 76 | | |||
77 | const auto defaultInstallPrefix = ICore::self()->runtimeController()->currentRuntime()->getenv("KDEV_DEFAULT_INSTALL_PREFIX"); | 77 | const auto defaultInstallPrefix = ICore::self()->runtimeController()->currentRuntime()->getenv("KDEV_DEFAULT_INSTALL_PREFIX"); | ||
78 | if (!defaultInstallPrefix.isEmpty()) { | 78 | if (!defaultInstallPrefix.isEmpty()) { | ||
79 | m_chooserUi->installPrefix->setPath(QFile::decodeName(defaultInstallPrefix)); | 79 | m_chooserUi->installPrefix->setUrl(QUrl::fromLocalFile(QFile::decodeName(defaultInstallPrefix))); | ||
80 | } | 80 | } | ||
81 | 81 | | |||
82 | updated(); | 82 | updated(); | ||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | CMakeBuildDirChooser::~CMakeBuildDirChooser() | 85 | CMakeBuildDirChooser::~CMakeBuildDirChooser() | ||
86 | { | 86 | { | ||
87 | delete m_extraArgumentsHistory; | 87 | delete m_extraArgumentsHistory; | ||
▲ Show 20 Lines • Show All 269 Lines • Show Last 20 Lines |