mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-25 04:54:40 +03:00
Availability components check has been added
This commit is contained in:
parent
c9d378a927
commit
d595d76eb2
@ -139,11 +139,14 @@ void TextItemEditor::initUI()
|
|||||||
|
|
||||||
m_completer->setModel(new QStringListModel(dataWords,m_completer));
|
m_completer->setModel(new QStringListModel(dataWords,m_completer));
|
||||||
ui->gbSettings->setVisible(false);
|
ui->gbSettings->setVisible(false);
|
||||||
connect(ui->twScriptEngine->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
|
||||||
|
if (ui->twScriptEngine->selectionModel()){
|
||||||
|
connect(ui->twScriptEngine->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
||||||
this, SLOT(slotScriptItemsSelectionChanged(QModelIndex,QModelIndex)));
|
this, SLOT(slotScriptItemsSelectionChanged(QModelIndex,QModelIndex)));
|
||||||
|
}
|
||||||
|
|
||||||
BandDesignIntf* band = findParentBand();
|
BandDesignIntf* band = findParentBand();
|
||||||
if (band && !band->datasourceName().isEmpty()){
|
if (band && ui->twData->model() && !band->datasourceName().isEmpty()){
|
||||||
QModelIndexList nodes = ui->twData->model()->match(
|
QModelIndexList nodes = ui->twData->model()->match(
|
||||||
ui->twData->model()->index(0,0),
|
ui->twData->model()->index(0,0),
|
||||||
Qt::DisplayRole,
|
Qt::DisplayRole,
|
||||||
|
Loading…
Reference in New Issue
Block a user