mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
correct icon size in math panels
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35492 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b1b1e13ad4
commit
ad12fa6eb5
@ -111,8 +111,6 @@ void IconPalette::addButton(QAction * action)
|
|||||||
QToolButton * tb = new QToolButton;
|
QToolButton * tb = new QToolButton;
|
||||||
tb->setAutoRaise(true);
|
tb->setAutoRaise(true);
|
||||||
tb->setDefaultAction(action);
|
tb->setDefaultAction(action);
|
||||||
QToolButton * pb = qobject_cast<QToolButton *>(parentWidget());
|
|
||||||
tb->setIconSize(pb->iconSize());
|
|
||||||
// trigger tooltip (children of popups do not receive mousemove events)
|
// trigger tooltip (children of popups do not receive mousemove events)
|
||||||
tb->setMouseTracking(true);
|
tb->setMouseTracking(true);
|
||||||
|
|
||||||
@ -121,6 +119,7 @@ void IconPalette::addButton(QAction * action)
|
|||||||
QToolBar * toolbar = qobject_cast<QToolBar *>(parentWidget()->parentWidget());
|
QToolBar * toolbar = qobject_cast<QToolBar *>(parentWidget()->parentWidget());
|
||||||
connect(toolbar, SIGNAL(iconSizeChanged(const QSize &)),
|
connect(toolbar, SIGNAL(iconSizeChanged(const QSize &)),
|
||||||
tb, SLOT(setIconSize(const QSize &)));
|
tb, SLOT(setIconSize(const QSize &)));
|
||||||
|
tb->setIconSize(toolbar->iconSize());
|
||||||
|
|
||||||
int const i = actions_.size();
|
int const i = actions_.size();
|
||||||
int const ncols = qMin(6, i);
|
int const ncols = qMin(6, i);
|
||||||
|
Loading…
Reference in New Issue
Block a user