forked from qt-creator/qt-creator
Use more FilePathAspect
Change-Id: Ib348df1460f8610607251498b07010df58d51ddf Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -6,10 +6,7 @@
|
||||
#include "haskellconstants.h"
|
||||
#include "haskelltr.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/pathchooser.h>
|
||||
#include <utils/layoutbuilder.h>
|
||||
|
||||
using namespace Utils;
|
||||
@@ -46,18 +43,18 @@ HaskellSettings::HaskellSettings()
|
||||
? FilePath::fromString("/usr/local/bin/stack")
|
||||
: FilePath::fromString("stack"));
|
||||
|
||||
setLayouter([this](QWidget *widget) {
|
||||
setLayouter([this] {
|
||||
using namespace Layouting;
|
||||
Column {
|
||||
return Column {
|
||||
Group {
|
||||
title(Tr::tr("General")),
|
||||
Row { Tr::tr("Stack executable:"), stackPath }
|
||||
},
|
||||
st,
|
||||
}.attachTo(widget);
|
||||
};
|
||||
});
|
||||
|
||||
readSettings(Core::ICore::settings());
|
||||
readSettings();
|
||||
}
|
||||
|
||||
} // Haskell::Internal
|
||||
|
||||
Reference in New Issue
Block a user