forked from qt-creator/qt-creator
PathChooser: Allow for chooser-only selection of files/directories
Makes the line edit disabled and read-only in that case. We also need to change the custom context menu from the line edit to the path chooser itself, because disabled widgets do not show a context menu, but we still want to see the select & copy, and the special items for opening explorer or terminal. Task-number: QTCREATORBUG-23798 Change-Id: Ib653b4eaaedfbe54c614377795ddc52d21ac12c0 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Eike Ziller
parent
5838b40c6d
commit
69b0a2cafc
@@ -33,6 +33,7 @@
|
||||
#include "cmakeprojectconstants.h"
|
||||
|
||||
#include <android/androidconstants.h>
|
||||
#include <projectexplorer/buildaspects.h>
|
||||
#include <projectexplorer/buildinfo.h>
|
||||
#include <projectexplorer/buildmanager.h>
|
||||
#include <projectexplorer/buildsteplist.h>
|
||||
@@ -67,6 +68,8 @@ CMakeBuildConfiguration::CMakeBuildConfiguration(Target *target, Core::Id id)
|
||||
displayName(),
|
||||
BuildConfiguration::Unknown));
|
||||
|
||||
buildDirectoryAspect()->setFileDialogOnly(true);
|
||||
|
||||
appendInitialBuildStep(Constants::CMAKE_BUILD_STEP_ID);
|
||||
appendInitialCleanStep(Constants::CMAKE_BUILD_STEP_ID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user