forked from qt-creator/qt-creator
Copilot: Merge copilotoptionspagewidget.{h,cpp} into copilotoptionspage.cpp
Too small to be worth a translation unit. Also drop unnecessary Q_OBJECT. Change-Id: Ife1bce6498eae81e2979c2798f8d4f19da16a11d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -3,13 +3,41 @@
|
||||
|
||||
#include "copilotoptionspage.h"
|
||||
|
||||
#include "copilotoptionspagewidget.h"
|
||||
#include "authwidget.h"
|
||||
#include "copilotsettings.h"
|
||||
#include "copilotsettings.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <utils/layoutbuilder.h>
|
||||
#include <utils/pathchooser.h>
|
||||
|
||||
using namespace Utils;
|
||||
using namespace LanguageClient;
|
||||
|
||||
namespace Copilot {
|
||||
|
||||
class CopilotOptionsPageWidget : public QWidget
|
||||
{
|
||||
public:
|
||||
CopilotOptionsPageWidget(QWidget *parent = nullptr)
|
||||
: QWidget(parent)
|
||||
{
|
||||
using namespace Layouting;
|
||||
|
||||
auto authWidget = new AuthWidget();
|
||||
|
||||
// clang-format off
|
||||
Column {
|
||||
authWidget, br,
|
||||
CopilotSettings::instance().nodeJsPath, br,
|
||||
CopilotSettings::instance().distPath, br,
|
||||
st
|
||||
}.attachTo(this);
|
||||
// clang-format on
|
||||
}
|
||||
};
|
||||
|
||||
CopilotOptionsPage::CopilotOptionsPage()
|
||||
{
|
||||
setId("Copilot.General");
|
||||
|
||||
Reference in New Issue
Block a user