Skip to content

Commit cec5c31

Browse files
committed
gfx: use default prettyName implementation
1 parent ed8a1a1 commit cec5c31

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#pragma once
2+
#include <score/plugins/panel/PanelDelegate.hpp>
3+
4+
#include <QLabel>
5+
#include <QVBoxLayout>
6+
7+
namespace score
8+
{
9+
10+
class ScriptPanelDelegate : public PanelDelegate
11+
{
12+
public:
13+
ScriptPanelDelegate(const score::GUIApplicationContext& ctx)
14+
: PanelDelegate{ctx}
15+
{
16+
widg = new QWidget;
17+
}
18+
19+
QWidget* widget() override { return widg; }
20+
21+
const PanelStatus& defaultPanelStatus() const override
22+
{
23+
static const PanelStatus stat{
24+
false, true, Qt::RightDockWidgetArea, -100000,
25+
"Script", "script", QKeySequence("Ctrl+Shift+S")};
26+
return stat;
27+
}
28+
QWidget* widg{};
29+
};
30+
}

src/lib/core/view/Window.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// This is an open source non-commercial project. Dear PVS-Studio, please check
22
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
33
#include "HelperPanelDelegate.hpp"
4-
#include "ScriptPanelDelegate.hpp"
54

65
#include <score/actions/Menu.hpp>
76
#include <score/plugins/application/GUIApplicationPlugin.hpp>

src/plugins/score-plugin-gfx/Gfx/Filter/Process.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,6 @@ Process::Preset Model::savePreset() const noexcept
176176
return p;
177177
}
178178

179-
QString Model::prettyName() const noexcept
180-
{
181-
return tr("GFX Filter");
182-
}
183-
184179
Process::Descriptor ProcessFactory::descriptor(QString path) const noexcept
185180
{
186181
return ISFHelpers::descriptorFromISFFile<Filter::Model>(path);

src/plugins/score-plugin-gfx/Gfx/Filter/Process.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ class Model final : public Process::ProcessModel
6969
private:
7070
void loadPreset(const Process::Preset& preset) override;
7171
Process::Preset savePreset() const noexcept override;
72-
QString prettyName() const noexcept override;
7372

7473
ShaderSource m_program;
7574
ProcessedProgram m_processedProgram;

0 commit comments

Comments
 (0)