mirror of https://github.com/KLayout/klayout.git
WIP: disable Escape, Enter keys. No focus for sliders to keep focus inside drawing if possible.
This commit is contained in:
parent
32624b1692
commit
30d896cf8b
|
|
@ -73,6 +73,9 @@
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="focusPolicy">
|
||||||
|
<enum>Qt::NoFocus</enum>
|
||||||
|
</property>
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>-300</number>
|
<number>-300</number>
|
||||||
</property>
|
</property>
|
||||||
|
|
@ -150,6 +153,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSlider" name="vzoom_slider">
|
<widget class="QSlider" name="vzoom_slider">
|
||||||
|
<property name="focusPolicy">
|
||||||
|
<enum>Qt::NoFocus</enum>
|
||||||
|
</property>
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>-300</number>
|
<number>-300</number>
|
||||||
</property>
|
</property>
|
||||||
|
|
@ -444,12 +450,25 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDialogButtonBox" name="buttonBox">
|
<spacer name="horizontalSpacer_3">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="standardButtons">
|
<property name="sizeHint" stdset="0">
|
||||||
<set>QDialogButtonBox::Close</set>
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Close</string>
|
||||||
|
</property>
|
||||||
|
<property name="autoDefault">
|
||||||
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
@ -470,18 +489,18 @@
|
||||||
</resources>
|
</resources>
|
||||||
<connections>
|
<connections>
|
||||||
<connection>
|
<connection>
|
||||||
<sender>buttonBox</sender>
|
<sender>pushButton</sender>
|
||||||
<signal>rejected()</signal>
|
<signal>clicked()</signal>
|
||||||
<receiver>D25View</receiver>
|
<receiver>D25View</receiver>
|
||||||
<slot>accept()</slot>
|
<slot>hide()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>530</x>
|
<x>808</x>
|
||||||
<y>626</y>
|
<y>634</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>443</x>
|
<x>767</x>
|
||||||
<y>643</y>
|
<y>659</y>
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
|
|
|
||||||
|
|
@ -221,5 +221,11 @@ D25View::accept ()
|
||||||
QDialog::accept ();
|
QDialog::accept ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
D25View::reject ()
|
||||||
|
{
|
||||||
|
QDialog::reject ();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void accept ();
|
void accept ();
|
||||||
|
void reject ();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void fit_button_clicked ();
|
void fit_button_clicked ();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue