mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21602 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e4fff1a3df
commit
9c928fba07
@ -763,19 +763,6 @@ void GuiWorkArea::expose(int x, int y, int w, int h)
|
||||
}
|
||||
|
||||
|
||||
void GuiWorkArea::setWindowTitle(docstring const & t, docstring const & it)
|
||||
{
|
||||
QString title = windowTitle();
|
||||
QString new_title = toqstr(t);
|
||||
if (title == new_title)
|
||||
return;
|
||||
|
||||
QWidget::setWindowTitle(new_title);
|
||||
QWidget::setWindowIconText(toqstr(it));
|
||||
titleChanged(this);
|
||||
}
|
||||
|
||||
|
||||
void GuiWorkArea::updateScreen()
|
||||
{
|
||||
GuiPainter pain(&screen_);
|
||||
@ -988,7 +975,14 @@ void GuiWorkArea::updateWindowTitle()
|
||||
maximize_title += _(" (read only)");
|
||||
}
|
||||
|
||||
setWindowTitle(maximize_title, minimize_title);
|
||||
QString title = windowTitle();
|
||||
QString new_title = toqstr(maximize_title);
|
||||
if (title == new_title)
|
||||
return;
|
||||
|
||||
QWidget::setWindowTitle(new_title);
|
||||
QWidget::setWindowIconText(toqstr(minimize_title));
|
||||
titleChanged(this);
|
||||
}
|
||||
|
||||
|
||||
|
@ -159,8 +159,6 @@ public Q_SLOTS:
|
||||
/// close this work area.
|
||||
/// Slot for Buffer::closing signal.
|
||||
void close();
|
||||
////
|
||||
void setWindowTitle(docstring const & t, docstring const & it);
|
||||
|
||||
Q_SIGNALS:
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user