forked from qt-creator/qt-creator
Clean up some navigation factory implementation
Change-Id: Ibbff643daf88200d50fb0343dd40b03803074081 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -5,25 +5,16 @@
|
|||||||
|
|
||||||
#include <coreplugin/inavigationwidgetfactory.h>
|
#include <coreplugin/inavigationwidgetfactory.h>
|
||||||
|
|
||||||
namespace ClassView {
|
namespace ClassView::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class NavigationWidgetFactory : public Core::INavigationWidgetFactory
|
class NavigationWidgetFactory : public Core::INavigationWidgetFactory
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NavigationWidgetFactory();
|
NavigationWidgetFactory();
|
||||||
|
|
||||||
//! \implements Core::INavigationWidgetFactory::createWidget
|
|
||||||
Core::NavigationView createWidget() override;
|
Core::NavigationView createWidget() override;
|
||||||
|
|
||||||
//! \implements Core::INavigationWidgetFactory::saveSettings
|
|
||||||
void saveSettings(Utils::QtcSettings *settings, int position, QWidget *widget) override;
|
void saveSettings(Utils::QtcSettings *settings, int position, QWidget *widget) override;
|
||||||
|
|
||||||
//! \implements Core::INavigationWidgetFactory::restoreSettings
|
|
||||||
void restoreSettings(Utils::QtcSettings *settings, int position, QWidget *widget) override;
|
void restoreSettings(Utils::QtcSettings *settings, int position, QWidget *widget) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // ClassView::Internal
|
||||||
} // namespace ClassView
|
|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
#include <QKeySequence>
|
#include <QKeySequence>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
class QSettings;
|
|
||||||
class QToolButton;
|
class QToolButton;
|
||||||
class QWidget;
|
class QWidget;
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
// Copyright (C) 2022 The Qt Company Ltd.
|
// Copyright (C) 2022 The Qt Company Ltd.
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
#include <coreplugin/inavigationwidgetfactory.h>
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <coreplugin/inavigationwidgetfactory.h>
|
||||||
|
|
||||||
namespace Core { class IDocument; }
|
namespace Core { class IDocument; }
|
||||||
|
|
||||||
namespace LanguageClient {
|
namespace LanguageClient {
|
||||||
@@ -13,8 +13,6 @@ class Client;
|
|||||||
|
|
||||||
class CallHierarchyFactory : public Core::INavigationWidgetFactory
|
class CallHierarchyFactory : public Core::INavigationWidgetFactory
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CallHierarchyFactory();
|
CallHierarchyFactory();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user