Author: vfr
Date: Mon Jan  3 19:50:37 2011
New Revision: 37084
URL: http://www.lyx.org/trac/changeset/37084

Log:
Fix part 3 of bug #7182: LyX truncates file names to about 25 chars.

Now, when hovering the tabs, the longer name is shown as a tooltip.

Modified:
   lyx-devel/trunk/src/frontends/qt4/GuiWorkArea.cpp

Modified: lyx-devel/trunk/src/frontends/qt4/GuiWorkArea.cpp
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiWorkArea.cpp   Mon Jan  3 19:44:52 
2011        (r37083)
+++ lyx-devel/trunk/src/frontends/qt4/GuiWorkArea.cpp   Mon Jan  3 19:50:37 
2011        (r37084)
@@ -1578,7 +1578,8 @@
        // when hiding it again below).
        if (!(currentWorkArea() && currentWorkArea()->isFullScreen()))
                showBar(count() > 0);
-       addTab(wa, wa->windowTitle());
+       int const index = addTab(wa, wa->windowTitle());
+       setTabToolTip(index, wa->windowTitle());
        QObject::connect(wa, SIGNAL(titleChanged(GuiWorkArea *)),
                this, SLOT(updateTabTexts()));
        if (currentWorkArea() && currentWorkArea()->isFullScreen())

Reply via email to