mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-03 14:13:58 +00:00
Remove references to older Qt versions
This commit is contained in:
parent
0a4f7db022
commit
19ef7a2dea
@ -136,8 +136,7 @@ void FancyLineEdit::checkButtons(const QString &text)
|
||||
|
||||
void FancyLineEdit::setClearButton(bool visible)
|
||||
{
|
||||
// QLineEdit::setClearButtonEnabled() has been implemented in Qt 5.2.
|
||||
// This is now the minimum required version
|
||||
// FIXME: remove and adapt code
|
||||
setClearButtonEnabled(visible);
|
||||
}
|
||||
|
||||
|
@ -78,8 +78,6 @@ int const strwidth_cache_max_cost = 1024 * 1024;
|
||||
// Limit breakstr_cache_ total cost to 10MB of string data.
|
||||
// This is useful for documents with very large insets.
|
||||
int const breakstr_cache_max_cost = 10 * 1024 * 1024;
|
||||
// Qt 5.x already has its own caching of QTextLayout objects
|
||||
// but it does not seem to work well on MacOS X.
|
||||
#if defined(Q_OS_MAC)
|
||||
// For some reason, the built-in cache of QTextLayout does not work or
|
||||
// exist on macOS.
|
||||
@ -424,7 +422,7 @@ getTextLayout_helper(TextLayoutHelper const & tlh, double const wordspacing,
|
||||
ptl->setFont(font);
|
||||
#ifdef BIDI_USE_FLAG
|
||||
/* Use undocumented flag to enforce drawing direction
|
||||
* FIXME: This does not work with Qt 5.11 (ticket #11284).
|
||||
* This does not work with some Qt versions (ticket #11284).
|
||||
*/
|
||||
ptl->setFlags(tlh.rtl ? Qt::TextForceRightToLeft : Qt::TextForceLeftToRight);
|
||||
#endif
|
||||
@ -527,7 +525,7 @@ GuiFontMetrics::breakString_helper(docstring const & s, int first_wid, int wid,
|
||||
QTextLayout tl;
|
||||
#ifdef BIDI_USE_FLAG
|
||||
/* Use undocumented flag to enforce drawing direction
|
||||
* FIXME: This does not work with Qt 5.11 (ticket #11284).
|
||||
* This does not work with some Qt versions (ticket #11284).
|
||||
*/
|
||||
tl.setFlags(rtl ? Qt::TextForceRightToLeft : Qt::TextForceLeftToRight);
|
||||
#endif
|
||||
|
@ -789,7 +789,7 @@ void GuiWorkArea::mouseMoveEvent(QMouseEvent * e)
|
||||
// QAbstractScrollArea::mouseMoveEvent, the event is triggered falsely when quickly
|
||||
// double tapping a touchpad. To test: try to select a word by quickly double tapping
|
||||
// on a touchpad while hovering the cursor over that word in the work area.
|
||||
// This bug does not occur on Qt versions 5.10.1 and below. Only Windows seems to be affected.
|
||||
// Only Windows seems to be affected.
|
||||
// ML thread: https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg211699.html
|
||||
// Qt bugtracker: https://bugreports.qt.io/browse/QTBUG-85431
|
||||
// Bug was fixed in Qt 5.15.1
|
||||
|
Loading…
Reference in New Issue
Block a user