mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
add some const.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22611 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ff588411af
commit
689d5c2b99
@ -401,7 +401,7 @@ public:
|
||||
PaletteButton(GuiToolbar * bar, ToolbarItem const & item)
|
||||
: QToolButton(bar), bar_(bar), tbitem_(item), initialized_(false)
|
||||
{
|
||||
QString label = qt_(to_ascii(tbitem_.label_));
|
||||
QString const label = qt_(to_ascii(tbitem_.label_));
|
||||
setToolTip(label);
|
||||
setStatusTip(label);
|
||||
setText(label);
|
||||
@ -431,7 +431,7 @@ public:
|
||||
return;
|
||||
}
|
||||
IconPalette * panel = new IconPalette(this);
|
||||
QString label = qt_(to_ascii(tbitem_.label_));
|
||||
QString const label = qt_(to_ascii(tbitem_.label_));
|
||||
panel->setWindowTitle(label);
|
||||
connect(this, SIGNAL(clicked(bool)), panel, SLOT(setVisible(bool)));
|
||||
connect(panel, SIGNAL(visible(bool)), this, SLOT(setChecked(bool)));
|
||||
@ -456,7 +456,7 @@ public:
|
||||
: QToolButton(bar), bar_(bar), tbitem_(item), initialized_(false)
|
||||
{
|
||||
setPopupMode(QToolButton::InstantPopup);
|
||||
QString label = qt_(to_ascii(tbitem_.label_));
|
||||
QString const label = qt_(to_ascii(tbitem_.label_));
|
||||
setToolTip(label);
|
||||
setStatusTip(label);
|
||||
setText(label);
|
||||
@ -474,7 +474,7 @@ public:
|
||||
|
||||
initialized_ = true;
|
||||
|
||||
QString label = qt_(to_ascii(tbitem_.label_));
|
||||
QString const label = qt_(to_ascii(tbitem_.label_));
|
||||
ButtonMenu * m = new ButtonMenu(label, this);
|
||||
m->setWindowTitle(label);
|
||||
m->setTearOffEnabled(true);
|
||||
@ -519,7 +519,7 @@ void GuiToolbar::add(ToolbarItem const & item)
|
||||
QToolButton * tb = new QToolButton;
|
||||
tb->setCheckable(true);
|
||||
tb->setIcon(getIcon(FuncRequest(LFUN_TABULAR_INSERT), true));
|
||||
QString label = qt_(to_ascii(item.label_));
|
||||
QString const label = qt_(to_ascii(item.label_));
|
||||
tb->setToolTip(label);
|
||||
tb->setStatusTip(label);
|
||||
tb->setText(label);
|
||||
|
Loading…
Reference in New Issue
Block a user