Commit 1131599b authored by Tobias WEBER's avatar Tobias WEBER

flickering bugfix

parent 215891e4
...@@ -89,7 +89,9 @@ MolDynDlg::MolDynDlg(QWidget* pParent) : QMainWindow{pParent}, ...@@ -89,7 +89,9 @@ MolDynDlg::MolDynDlg(QWidget* pParent) : QMainWindow{pParent},
this->setObjectName("moldyn"); this->setObjectName("moldyn");
m_status = new QStatusBar(this); m_status = new QStatusBar(this);
m_statusCurAtom = new QLabel(m_status);
m_statusAtoms = new QLabel(m_status); m_statusAtoms = new QLabel(m_status);
m_status->addWidget(m_statusCurAtom);
m_status->addPermanentWidget(m_statusAtoms); m_status->addPermanentWidget(m_statusAtoms);
this->setStatusBar(m_status); this->setStatusBar(m_status);
...@@ -791,11 +793,13 @@ void MolDynDlg::PickerIntersection(const t_vec3_gl* pos, std::size_t objIdx, con ...@@ -791,11 +793,13 @@ void MolDynDlg::PickerIntersection(const t_vec3_gl* pos, std::size_t objIdx, con
if(m_curPickedObj > 0) if(m_curPickedObj > 0)
{ {
const std::string& label = m_plot->GetImpl()->GetObjectDataString(m_curPickedObj); const std::string& label = m_plot->GetImpl()->GetObjectDataString(m_curPickedObj);
SetStatusMsg(label); m_statusCurAtom->setText(label.c_str());
//SetStatusMsg(label);
} }
else else
{ {
SetStatusMsg(""); m_statusCurAtom->setText("");
//SetStatusMsg("");
} }
} }
......
...@@ -82,8 +82,11 @@ protected: ...@@ -82,8 +82,11 @@ protected:
QSettings *m_sett = nullptr; QSettings *m_sett = nullptr;
QMenuBar *m_menu = nullptr; QMenuBar *m_menu = nullptr;
QStatusBar *m_status = nullptr; QStatusBar *m_status = nullptr;
QLabel *m_statusCurAtom = nullptr;
QLabel *m_statusAtoms = nullptr; QLabel *m_statusAtoms = nullptr;
QSlider *m_slider = nullptr; QSlider *m_slider = nullptr;
QDoubleSpinBox *m_spinScale = nullptr; QDoubleSpinBox *m_spinScale = nullptr;
QMenu *m_atomContextMenu = nullptr; QMenu *m_atomContextMenu = nullptr;
......
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