]> git.lyx.org Git - lyx.git/commit
Set window title according to platform UI
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 6 Sep 2016 09:17:10 +0000 (11:17 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 8 Sep 2016 13:59:44 +0000 (15:59 +0200)
commit82808fea04315fd323ec074e8ad7865d190987d4
tree7f634e0bf93c790a8b1ab13bd048fe6fb7447798
parentb95262f487726e1c716698e8ad3ff8a1c125ec9e
Set window title according to platform UI

The window title is built from the current file name and its
mofidication state. We use our own code instead of the automatic title
bar provided when windowFileName() is set because

1/ Qt does not keep the full path name
2/ Qt does not yield a nice application name

The "read only" and "version control" status are shown in the status bar:

* for read only we use the tab read only emblem (with the right size)
* for version control, we show the name of the backend (using a new
  vcname() method of the backend).

The iconText() of the view is not updated anymore, since this is
deprecated in Qt5.
src/LyXVC.cpp
src/LyXVC.h
src/VCBackend.h
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiView.h
src/frontends/qt4/GuiWorkArea.cpp