Cosmetics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21602 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-11-14 12:31:31 +00:00
parent e4fff1a3df
commit 9c928fba07
2 changed files with 8 additions and 16 deletions

View File

@ -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);
}

View File

@ -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:
///