More const methods

GIT_SILENT
parent f06c5fa3
......@@ -57,7 +57,7 @@ public:
/**
* @returns the default position where this tool view should appear
*/
virtual Qt::DockWidgetArea defaultPosition() = 0;
virtual Qt::DockWidgetArea defaultPosition() const = 0;
/**
* Fetch a list of actions to add to the toolbar of the tool view @p view
* @param viewWidget the view to which the actions should be added
......
......@@ -72,7 +72,7 @@ public:
return m_id;
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return m_defaultArea;
}
......
......@@ -100,7 +100,10 @@ public:
return new DocumentationView(parent, m_providersModel.data());
}
Qt::DockWidgetArea defaultPosition() override { return Qt::RightDockWidgetArea; }
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::RightDockWidgetArea;
}
QString id() const override { return QStringLiteral("org.kdevelop.DocumentationView"); }
QList<QAction*> contextMenuActions(QWidget* viewWidget) const override
{
......
......@@ -123,7 +123,7 @@ public:
return widget;
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
switch (m_pos) {
case KTextEditor::MainWindow::Left:
......
......@@ -732,9 +732,9 @@ QVector<KPluginMetaData> PluginController::queryExtensionPlugins(const QString&
return plugins;
}
QStringList PluginController::allPluginNames()
QStringList PluginController::allPluginNames() const
{
Q_D(PluginController);
Q_D(const PluginController);
QStringList names;
names.reserve(d->plugins.size());
......
......@@ -120,7 +120,7 @@ public:
QList<IPlugin*> allPluginsForExtension(const QString &extension, const QVariantMap& constraints = QVariantMap()) override;
QStringList allPluginNames();
QStringList allPluginNames() const;
QVector<KPluginMetaData> queryExtensionPlugins(const QString& extension, const QVariantMap& constraints = QVariantMap()) const override;
......
......@@ -63,7 +63,7 @@ public:
return new ClassWidget(parent, m_plugin);
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::LeftDockWidgetArea;
}
......
......@@ -149,7 +149,7 @@ public:
return ret;
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::BottomDockWidgetArea;
}
......
......@@ -131,7 +131,7 @@ public:
return m_id;
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return m_defaultArea;
}
......
......@@ -67,7 +67,7 @@ class KDevDocumentViewPluginFactory: public KDevelop::IToolViewFactory
view, &KDevDocumentView::documentUrlChanged );
return view;
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::LeftDockWidgetArea;
}
......
......@@ -63,7 +63,7 @@ public:
return new ExternalScriptView(m_plugin, parent);
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::RightDockWidgetArea;
}
......
......@@ -46,7 +46,7 @@ public:
return KDevelop::IToolViewFactory::toolBarActions( w );
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::LeftDockWidgetArea;
}
......
......@@ -50,7 +50,7 @@ public:
return QStringLiteral("org.kdevelop.TemplateFilePreview");
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::RightDockWidgetArea;
}
......
......@@ -42,7 +42,7 @@ QWidget* GrepOutputViewFactory::create(QWidget* parent)
return new GrepOutputView(parent, m_plugin);
}
Qt::DockWidgetArea GrepOutputViewFactory::defaultPosition()
Qt::DockWidgetArea GrepOutputViewFactory::defaultPosition() const
{
return Qt::BottomDockWidgetArea;
}
......
......@@ -35,7 +35,7 @@ class GrepOutputViewFactory: public KDevelop::IToolViewFactory
public:
explicit GrepOutputViewFactory(GrepViewPlugin* plugin);
QWidget* create(QWidget* parent = nullptr) override;
Qt::DockWidgetArea defaultPosition() override;
Qt::DockWidgetArea defaultPosition() const override;
QString id() const override;
private:
GrepViewPlugin* m_plugin;
......
......@@ -43,7 +43,7 @@ public:
{
return new KDevKonsoleView(mplugin, parent);
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::BottomDockWidgetArea;
}
......
......@@ -46,7 +46,7 @@ QString OktetaToolViewFactory::id() const
{
return mToolViewFactory->id();
}
Qt::DockWidgetArea OktetaToolViewFactory::defaultPosition()
Qt::DockWidgetArea OktetaToolViewFactory::defaultPosition() const
{
return (Qt::DockWidgetArea)mToolViewFactory->defaultPosition();
}
......
......@@ -44,7 +44,7 @@ class OktetaToolViewFactory : public IToolViewFactory
public: // KDevelop::IToolViewFactory API
QWidget* create( QWidget* parent ) override;
Qt::DockWidgetArea defaultPosition() override;
Qt::DockWidgetArea defaultPosition() const override;
QString id() const override;
......
......@@ -40,7 +40,7 @@ public:
return new OutlineWidget(parent, m_plugin);
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::RightDockWidgetArea;
}
......
......@@ -325,7 +325,8 @@ public:
return new PatchReviewToolView( parent, m_plugin );
}
Qt::DockWidgetArea defaultPosition() override {
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::BottomDockWidgetArea;
}
......
......@@ -72,7 +72,10 @@ public:
return v;
}
Qt::DockWidgetArea defaultPosition() override { return Qt::BottomDockWidgetArea; }
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::BottomDockWidgetArea;
}
QString id() const override { return QStringLiteral("org.kdevelop.ProblemReporterView"); }
};
......
......@@ -109,7 +109,7 @@ class KDevProjectManagerViewFactory: public KDevelop::IToolViewFactory
{
return new ProjectManagerView( mplugin, parent );
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::LeftDockWidgetArea;
}
......
......@@ -58,7 +58,7 @@ public:
return new ScratchpadView(parent, m_plugin);
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::LeftDockWidgetArea;
}
......
......@@ -46,7 +46,7 @@ public:
{
return new OutputWidget( parent, m_data );
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::BottomDockWidgetArea;
}
......
......@@ -48,7 +48,7 @@ class TestToolViewFactory: public KDevelop::IToolViewFactory
{
return new TestView( mplugin, parent );
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::LeftDockWidgetArea;
}
......
......@@ -54,7 +54,7 @@ public:
return modif;
}
Qt::DockWidgetArea defaultPosition() override
Qt::DockWidgetArea defaultPosition() const override
{
return Qt::RightDockWidgetArea;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment