]> git.lyx.org Git - features.git/commitdiff
Fix part 3 of bug #7182: LyX truncates file names to about 25 chars.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 Jan 2011 18:50:37 +0000 (18:50 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 Jan 2011 18:50:37 +0000 (18:50 +0000)
Now, when hovering the tabs, the longer name is shown as a tooltip.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37084 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index 030ffc937d84b31086a7f4ffedd0982e1d10839e..4488c701a8661276f5767b7a9043f289004fb6be 100644 (file)
@@ -1578,7 +1578,8 @@ GuiWorkArea * TabWorkArea::addWorkArea(Buffer & buffer, GuiView & view)
        // 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())