]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/qt_helpers.C
rename LFUN enum values according to their command (as used in th minibuffer/bind...
[lyx.git] / src / frontends / qt4 / qt_helpers.C
index ceab4ddb1c55ba9084606311308af1746bef484d..1b019f7a2cdef6d34396e15fa4c52ab15e1870e3 100644 (file)
@@ -38,29 +38,17 @@ string makeFontName(string const & family, string const & foundry)
 {
        if (foundry.empty())
                return family;
-#if QT_VERSION  >= 300
        return family + " [" + foundry + ']';
-#else
-       return foundry + '-' + family;
-#endif
 }
 
 
 pair<string,string> parseFontName(string const & name)
 {
-#if QT_VERSION  >= 300
        string::size_type const idx = name.find('[');
        if (idx == string::npos || idx == 0)
                return make_pair(name, string());
        return make_pair(name.substr(0, idx - 1),
                         name.substr(idx + 1, name.size() - idx - 2));
-#else
-       string::size_type const idx = name.find('-');
-       if (idx == string::npos || idx == 0)
-               return make_pair(name, string());
-       return make_pair(name.substr(idx + 1),
-                        name.substr(0, idx));
-#endif
 }