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:
hjk
2023-02-22 14:35:18 +01:00
parent 82194d7e9c
commit e25bf6e59d
5 changed files with 29 additions and 56 deletions

View File

@@ -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");