mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
* On Mac it's common to have tool windows which are always in the
foreground and are hidden when the main window is not focused. Moreover they are normally "auto applying". This patch implements this for the character and the paragraph dialog. These text propertied are implemented in major application like Apple Pages, OmniGraffle and others via inspectors or toolbars. Our "auto apply"-mode resembles these very well. So why not activate it and make LyX a bit more Mac-like. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22673 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9f58157ffd
commit
5b46cbef1a
@ -288,6 +288,13 @@ GuiCharacter::GuiCharacter(GuiView & lv)
|
||||
connect(langCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
|
||||
connect(toggleallCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
|
||||
|
||||
#ifdef Q_WS_MACX
|
||||
// On Mac it's common to have tool windows which are always in the
|
||||
// foreground and are hidden when the main window is not focused.
|
||||
setWindowFlags(Qt::Tool);
|
||||
autoapplyCB->setChecked(true);
|
||||
#endif
|
||||
|
||||
family = getFamilyData();
|
||||
series = getSeriesData();
|
||||
shape = getShapeData();
|
||||
|
@ -62,8 +62,15 @@ GuiParagraph::GuiParagraph(GuiView & lv)
|
||||
connect(labelWidth, SIGNAL(textChanged(QString)),
|
||||
this, SLOT(changed()));
|
||||
|
||||
|
||||
#ifdef Q_WS_MACX
|
||||
// On Mac it's common to have tool windows which are always in the
|
||||
// foreground and are hidden when the main window is not focused.
|
||||
setWindowFlags(Qt::Tool);
|
||||
synchronizedViewCB->setChecked(true);
|
||||
#else
|
||||
synchronizedViewCB->setChecked(false);
|
||||
#endif
|
||||
|
||||
on_synchronizedViewCB_toggled();
|
||||
linespacingValue->setValidator(new QDoubleValidator(linespacingValue));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user