Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2dfa1332 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Allow KDEV_DEFAULT_INSTALL_PREFIX specify a default install prefix

This way we can teach KDevelop where we should be installing our builds
parent 8019461c
...@@ -68,6 +68,11 @@ CMakeBuildDirChooser::CMakeBuildDirChooser(QWidget* parent) ...@@ -68,6 +68,11 @@ CMakeBuildDirChooser::CMakeBuildDirChooser(QWidget* parent)
connect(m_chooserUi->extraArguments, &KComboBox::editTextChanged, this, &CMakeBuildDirChooser::updated); connect(m_chooserUi->extraArguments, &KComboBox::editTextChanged, this, &CMakeBuildDirChooser::updated);
connect(m_chooserUi->availableBuildDirs, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &CMakeBuildDirChooser::adoptPreviousBuildDirectory); connect(m_chooserUi->availableBuildDirs, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &CMakeBuildDirChooser::adoptPreviousBuildDirectory);
const auto defaultInstallPrefix = ICore::self()->runtimeController()->currentRuntime()->getenv("KDEV_DEFAULT_INSTALL_PREFIX");
if (!defaultInstallPrefix.isEmpty()) {
m_chooserUi->installPrefix->setPath(QFile::decodeName(defaultInstallPrefix));
}
updated(); updated();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment