From 4ca5973d6067679741138c5983d8bc4d2aac63c3 Mon Sep 17 00:00:00 2001 From: Alf Gaida Date: Sat, 31 Oct 2015 01:09:15 +0100 Subject: [PATCH] Adding upstream version 0.9.0+20151025. --- AUTHORS | 5 ++--- COPYING | 2 +- Digia-Qt-LGPL-Exception-version-1.1 | 25 +++++++++++++++++++++++++ src/lxqtplatformtheme.cpp | 9 +++------ 4 files changed, 31 insertions(+), 10 deletions(-) create mode 100644 Digia-Qt-LGPL-Exception-version-1.1 diff --git a/AUTHORS b/AUTHORS index 8e41b63..06a7892 100644 --- a/AUTHORS +++ b/AUTHORS @@ -5,7 +5,6 @@ Upstream Authors: Copyright: Copyright (c) 2013-2014 LXQt team -License: GPL-2 and LGPL-2.1+ +License: LGPL-2.1+ The full text of the licenses can be found in the 'COPYING' file. - -Based on source code from the Qt 4.8 Project by Digia Plc +src/qiconloader_p.h is under LGPL-2.1 or 3 with Digia Qt LGPL Exception version 1.1 diff --git a/COPYING b/COPYING index a8dd823..ab31941 100644 --- a/COPYING +++ b/COPYING @@ -3,7 +3,7 @@ Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. diff --git a/Digia-Qt-LGPL-Exception-version-1.1 b/Digia-Qt-LGPL-Exception-version-1.1 new file mode 100644 index 0000000..6e6fb3a --- /dev/null +++ b/Digia-Qt-LGPL-Exception-version-1.1 @@ -0,0 +1,25 @@ +Digia Qt LGPL Exception version 1.1 +=================================== + +As an additional permission to the GNU Lesser General Public License version +2.1, the object code form of a "work that uses the Library" may incorporate +material from a header file that is part of the Library. You may distribute +such object code under terms of your choice, provided that: + + (i) the header files of the Library have not been modified; and + (ii) the incorporated material is limited to numerical parameters, data + structure layouts, accessors, macros, inline functions and + templates; and + (iii) you comply with the terms of Section 6 of the GNU Lesser General + Public License version 2.1. + +Moreover, you may apply this exception to a modified version of the Library, +provided that such modification does not involve copying material from the +Library into the modified Library's header files unless such material is +limited to (i) numerical parameters; (ii) data structure layouts; +(iii) accessors; and (iv) small macros, templates and inline functions of +five lines or less in length. + +Furthermore, you are not required to apply this additional permission to a +modified version of the Library. + diff --git a/src/lxqtplatformtheme.cpp b/src/lxqtplatformtheme.cpp index 51f0166..dedefbb 100644 --- a/src/lxqtplatformtheme.cpp +++ b/src/lxqtplatformtheme.cpp @@ -214,10 +214,10 @@ const QPalette *LXQtPlatformTheme::palette(Palette type) const { } const QFont *LXQtPlatformTheme::font(Font type) const { - // qDebug() << "font()" << type << SystemFont; + // qDebug() << "font()" << type << SystemFont; if(type == SystemFont && !fontStr_.isEmpty()) { - // NOTE: for some reason, this is not called by Qt when program startup. - // So we do QApplication::setFont() manually. + // NOTE: for some reason, this is not called by Qt when program startup. + // So we do QApplication::setFont() manually. return &font_; } else if(type == FixedFont && !fixedFontStr_.isEmpty()) { @@ -291,13 +291,10 @@ QVariant LXQtPlatformTheme::themeHint(ThemeHint hint) const { break; case ContextMenuOnMouseRelease: break; -#if QT_VERSION >= QT_VERSION_CHECK(5, 3, 0) - // this was introduced in Qt 5.3. case MousePressAndHoldInterval: break; case MouseDoubleClickDistance: break; -#endif default: break; }