Changeset View
Changeset View
Standalone View
Standalone View
src/panelplugins/variablemgr/variablemanagerwidget.cpp
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | 92 | if(ext->clearVariables().isNull()) | |||
---|---|---|---|---|---|
93 | m_clearBtn->setDisabled(true); | 93 | m_clearBtn->setDisabled(true); | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | void VariableManagerWidget::setSession(Cantor::Session* session) | 96 | void VariableManagerWidget::setSession(Cantor::Session* session) | ||
97 | { | 97 | { | ||
98 | m_session=session; | 98 | m_session=session; | ||
99 | if(session) | 99 | if(session) | ||
100 | { | 100 | { | ||
101 | m_model=session->variableModel(); | 101 | m_model=session->variableDataModel(); | ||
102 | if(m_table) | 102 | if(m_table) | ||
103 | m_table->setModel(m_model); | 103 | m_table->setModel(m_model); | ||
104 | } | 104 | } | ||
105 | } | 105 | } | ||
106 | 106 | | |||
107 | void VariableManagerWidget::clearVariables() | 107 | void VariableManagerWidget::clearVariables() | ||
108 | { | 108 | { | ||
109 | int btn=KMessageBox::questionYesNo(this, i18n("Are you sure you want to remove all variables?"), i18n("Confirmation - Cantor")); | 109 | int btn=KMessageBox::questionYesNo(this, i18n("Are you sure you want to remove all variables?"), i18n("Confirmation - Cantor")); | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |