mirror of https://github.com/KLayout/klayout.git
Merge branch 'master' into dvb
This commit is contained in:
commit
14e20b597b
|
|
@ -284,6 +284,8 @@ PCellParametersPage::setup (const db::Layout *layout, lay::LayoutView *view, int
|
||||||
ul->setText (tl::to_qstring (p->get_unit ()));
|
ul->setText (tl::to_qstring (p->get_unit ()));
|
||||||
|
|
||||||
inner_grid->addWidget (f, row, 1);
|
inner_grid->addWidget (f, row, 1);
|
||||||
|
|
||||||
|
connect (le, SIGNAL (editingFinished ()), this, SLOT (activated ()));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -295,6 +297,8 @@ PCellParametersPage::setup (const db::Layout *layout, lay::LayoutView *view, int
|
||||||
le->setEnabled (! p->is_readonly ());
|
le->setEnabled (! p->is_readonly ());
|
||||||
m_widgets.push_back (le);
|
m_widgets.push_back (le);
|
||||||
inner_grid->addWidget (le, row, 1);
|
inner_grid->addWidget (le, row, 1);
|
||||||
|
|
||||||
|
connect (le, SIGNAL (editingFinished ()), this, SLOT (activated ()));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -315,6 +319,8 @@ PCellParametersPage::setup (const db::Layout *layout, lay::LayoutView *view, int
|
||||||
cbx->setEnabled (! p->is_readonly ());
|
cbx->setEnabled (! p->is_readonly ());
|
||||||
m_widgets.push_back (cbx);
|
m_widgets.push_back (cbx);
|
||||||
inner_grid->addWidget (cbx, row, 1);
|
inner_grid->addWidget (cbx, row, 1);
|
||||||
|
|
||||||
|
connect (cbx, SIGNAL (stateChanged (int)), this, SLOT (activated ()));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -336,7 +342,7 @@ PCellParametersPage::setup (const db::Layout *layout, lay::LayoutView *view, int
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
connect (cb, SIGNAL (activated (int)), this, SLOT (activated (int)));
|
connect (cb, SIGNAL (activated (int)), this, SLOT (activated ()));
|
||||||
cb->setEnabled (! p->is_readonly ());
|
cb->setEnabled (! p->is_readonly ());
|
||||||
cb->setMinimumContentsLength (30);
|
cb->setMinimumContentsLength (30);
|
||||||
cb->setSizeAdjustPolicy (QComboBox::AdjustToMinimumContentsLengthWithIcon);
|
cb->setSizeAdjustPolicy (QComboBox::AdjustToMinimumContentsLengthWithIcon);
|
||||||
|
|
@ -381,7 +387,7 @@ PCellParametersPage::set_state (const State &s)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
PCellParametersPage::activated (int)
|
PCellParametersPage::activated ()
|
||||||
{
|
{
|
||||||
// does a coerce and update
|
// does a coerce and update
|
||||||
get_parameters ();
|
get_parameters ();
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ public:
|
||||||
void set_parameters (const std::vector<tl::Variant> &values);
|
void set_parameters (const std::vector<tl::Variant> &values);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void activated (int);
|
void activated ();
|
||||||
void clicked ();
|
void clicked ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ struct test_type_func<__int128>
|
||||||
{
|
{
|
||||||
bool operator() (PyObject *rval, bool loose)
|
bool operator() (PyObject *rval, bool loose)
|
||||||
{
|
{
|
||||||
return test_type<int> (rval, loose);
|
return test_type_func<int> () (rval, loose);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -582,7 +582,7 @@ struct c2python_func<unsigned long long>
|
||||||
|
|
||||||
#if defined(HAVE_64BIT_COORD)
|
#if defined(HAVE_64BIT_COORD)
|
||||||
template <>
|
template <>
|
||||||
struct c2python_func<const __int128 &>
|
struct c2python_func<__int128>
|
||||||
{
|
{
|
||||||
PyObject *operator() (const __int128 &c)
|
PyObject *operator() (const __int128 &c)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue