Skip to content
Snippets Groups Projects
Commit 944712cd authored by Matthias Puchner's avatar Matthias Puchner
Browse files

rm unused code

parent 627c8f68
No related branches found
No related tags found
1 merge request!649Cleanup and a few corrections
...@@ -66,7 +66,7 @@ SampleView::SampleView(QWidget* parent, ProjectDocument* document) ...@@ -66,7 +66,7 @@ SampleView::SampleView(QWidget* parent, ProjectDocument* document)
m_sampleSelectionView->setSizePolicy(QSizePolicy::MinimumExpanding, m_sampleSelectionView->setSizePolicy(QSizePolicy::MinimumExpanding,
QSizePolicy::MinimumExpanding); QSizePolicy::MinimumExpanding);
auto* scriptPanel = new ScriptPanel(m_document->sampleModel(), this); auto* scriptPanel = new ScriptPanel(this);
m_realSpacePanel = new RealSpacePanel(this); m_realSpacePanel = new RealSpacePanel(this);
sampleSelectionPane->setWindowTitle("Samples"); sampleSelectionPane->setWindowTitle("Samples");
......
...@@ -32,10 +32,9 @@ namespace { ...@@ -32,10 +32,9 @@ namespace {
const int accumulateUpdatesDuringMsec = 20.; const int accumulateUpdatesDuringMsec = 20.;
} }
ScriptPanel::ScriptPanel(SampleModel* sampleModel, QWidget* parent) ScriptPanel::ScriptPanel(QWidget* parent)
: QWidget(parent) : QWidget(parent)
, m_textEdit(new QTextEdit) , m_textEdit(new QTextEdit)
, m_sampleModel(sampleModel)
, m_highlighter(nullptr) , m_highlighter(nullptr)
, m_updateTimer(new UpdateTimer(accumulateUpdatesDuringMsec, this)) , m_updateTimer(new UpdateTimer(accumulateUpdatesDuringMsec, this))
, m_cautionSign(new CautionSign(m_textEdit)) , m_cautionSign(new CautionSign(m_textEdit))
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <QWidget> #include <QWidget>
class SampleModel;
class PythonSyntaxHighlighter; class PythonSyntaxHighlighter;
class UpdateTimer; class UpdateTimer;
class CautionSign; class CautionSign;
...@@ -33,7 +32,7 @@ class ScriptPanel : public QWidget { ...@@ -33,7 +32,7 @@ class ScriptPanel : public QWidget {
Q_OBJECT Q_OBJECT
public: public:
explicit ScriptPanel(SampleModel* sampleModel, QWidget* parent); explicit ScriptPanel(QWidget* parent);
void setCurrentSample(MultiLayerItem* multiLayerItem); void setCurrentSample(MultiLayerItem* multiLayerItem);
void onSampleModified(); void onSampleModified();
...@@ -50,7 +49,6 @@ private: ...@@ -50,7 +49,6 @@ private:
void updateEditor(); void updateEditor();
QTextEdit* m_textEdit; QTextEdit* m_textEdit;
SampleModel* m_sampleModel;
PythonSyntaxHighlighter* m_highlighter; PythonSyntaxHighlighter* m_highlighter;
UpdateTimer* m_updateTimer; UpdateTimer* m_updateTimer;
CautionSign* m_cautionSign; CautionSign* m_cautionSign;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment