mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Implement Vincent's suggestions:
- [New Inset] button even in non synchronous mode - Get rid of the horizontal spacer for improved layout under Windows. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33520 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f5cc73f583
commit
bebd53821a
@ -114,12 +114,15 @@ void InsetParamsDialog::newInset()
|
||||
}
|
||||
|
||||
|
||||
void InsetParamsDialog::on_newPB_clicked()
|
||||
{
|
||||
newInset();
|
||||
}
|
||||
|
||||
|
||||
void InsetParamsDialog::on_applyPB_clicked()
|
||||
{
|
||||
if (synchronizedViewCB->isChecked())
|
||||
newInset();
|
||||
else
|
||||
applyView();
|
||||
applyView();
|
||||
}
|
||||
|
||||
|
||||
@ -131,10 +134,7 @@ void InsetParamsDialog::on_closePB_clicked()
|
||||
|
||||
void InsetParamsDialog::on_synchronizedViewCB_stateChanged(int state)
|
||||
{
|
||||
bool const sync = (state == Qt::Checked);
|
||||
QString const label = sync ? qt_("&New") : qt_("&Apply");
|
||||
applyPB->setText(label);
|
||||
checkWidgets(sync);
|
||||
checkWidgets(state == Qt::Checked);
|
||||
}
|
||||
|
||||
|
||||
|
@ -39,6 +39,7 @@ protected Q_SLOTS:
|
||||
void onWidget_changed();
|
||||
void applyView();
|
||||
void on_restorePB_clicked();
|
||||
void on_newPB_clicked();
|
||||
void on_okPB_clicked();
|
||||
void on_applyPB_clicked();
|
||||
void on_closePB_clicked();
|
||||
|
@ -5,8 +5,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>438</width>
|
||||
<height>292</height>
|
||||
<width>464</width>
|
||||
<height>225</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="focusPolicy">
|
||||
@ -63,6 +63,16 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="newPB">
|
||||
<property name="text">
|
||||
<string>New Inset</string>
|
||||
</property>
|
||||
<property name="autoDefault">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer>
|
||||
<property name="orientation">
|
||||
@ -121,7 +131,7 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="2">
|
||||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QStackedWidget" name="stackedWidget">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
|
Loading…
Reference in New Issue
Block a user