mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-13 23:12:35 +03:00
1.1.1
This commit is contained in:
@@ -98,7 +98,7 @@ public:
|
||||
void objectLoadFinished();
|
||||
|
||||
void setTextItemFont(QFont value);
|
||||
virtual QWidget* defaultEditor();
|
||||
QWidget* defaultEditor();
|
||||
void setBackgroundOpacity(int value);
|
||||
void setBackgroundModeProperty(BGMode value);
|
||||
void setBackgroundColorProperty(QColor value);
|
||||
|
@@ -133,6 +133,8 @@ void TextItemEditor::initUI()
|
||||
|
||||
m_completer->setModel(new QStringListModel(dataWords,m_completer));
|
||||
ui->gbSettings->setVisible(false);
|
||||
connect(ui->twScriptEngine->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
||||
this, SLOT(slotScriptItemsSelectionChanged(QModelIndex,QModelIndex)));
|
||||
}
|
||||
|
||||
QStringListModel *TextItemEditor::getDataSources()
|
||||
@@ -354,3 +356,21 @@ void TextItemEditor::on_toolButton_clicked(bool checked)
|
||||
{
|
||||
ui->gbSettings->setVisible(checked);
|
||||
}
|
||||
|
||||
|
||||
void TextItemEditor::on_twScriptEngine_activated(const QModelIndex &index)
|
||||
{
|
||||
LimeReport::ScriptEngineNode* node = static_cast<LimeReport::ScriptEngineNode*>(index.internalPointer());
|
||||
if (node->type()==LimeReport::ScriptEngineNode::Function){
|
||||
ui->lblDescription->setText(node->name());
|
||||
}
|
||||
}
|
||||
|
||||
void TextItemEditor::slotScriptItemsSelectionChanged(const QModelIndex &to, const QModelIndex)
|
||||
{
|
||||
LimeReport::ScriptEngineNode* node = static_cast<LimeReport::ScriptEngineNode*>(to.internalPointer());
|
||||
if (node->type()==LimeReport::ScriptEngineNode::Function){
|
||||
ui->lblDescription->setText(node->description());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -79,11 +79,10 @@ private slots:
|
||||
void on_twScriptEngine_doubleClicked(const QModelIndex &index);
|
||||
void on_splitter_splitterMoved(int, int);
|
||||
void on_editorFont_currentFontChanged(const QFont &f);
|
||||
|
||||
void on_editorFontSize_valueChanged(int arg1);
|
||||
|
||||
void on_toolButton_clicked(bool checked);
|
||||
|
||||
void on_twScriptEngine_activated(const QModelIndex &index);
|
||||
void slotScriptItemsSelectionChanged(const QModelIndex &to, const QModelIndex);
|
||||
private:
|
||||
void initUI();
|
||||
void readSetting();
|
||||
|
@@ -107,26 +107,21 @@
|
||||
<string>Functions</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<property name="spacing">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QTreeView" name="twScriptEngine">
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<widget class="QSplitter" name="splitter_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<widget class="QTreeView" name="twScriptEngine">
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
</widget>
|
||||
<widget class="QLabel" name="lblDescription">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
Reference in New Issue
Block a user