Adding upstream version 0.10.0.
This commit is contained in:
parent
4ca5973d60
commit
b34de2c23b
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
build
|
||||||
|
*.kdev4
|
@ -1,9 +1,8 @@
|
|||||||
|
|
||||||
GNU LESSER GENERAL PUBLIC LICENSE
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
Version 2.1, February 1999
|
Version 2.1, February 1999
|
||||||
|
|
||||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||||
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this license document, but changing it is not allowed.
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
@ -23,8 +22,7 @@ specially designated software packages--typically libraries--of the
|
|||||||
Free Software Foundation and other authors who decide to use it. You
|
Free Software Foundation and other authors who decide to use it. You
|
||||||
can use it too, but we suggest you first think carefully about whether
|
can use it too, but we suggest you first think carefully about whether
|
||||||
this license or the ordinary General Public License is the better
|
this license or the ordinary General Public License is the better
|
||||||
strategy to use in any particular case, based on the explanations
|
strategy to use in any particular case, based on the explanations below.
|
||||||
below.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom of use,
|
When we speak of free software, we are referring to freedom of use,
|
||||||
not price. Our General Public Licenses are designed to make sure that
|
not price. Our General Public Licenses are designed to make sure that
|
||||||
@ -89,9 +87,9 @@ libraries. However, the Lesser license provides advantages in certain
|
|||||||
special circumstances.
|
special circumstances.
|
||||||
|
|
||||||
For example, on rare occasions, there may be a special need to
|
For example, on rare occasions, there may be a special need to
|
||||||
encourage the widest possible use of a certain library, so that it
|
encourage the widest possible use of a certain library, so that it becomes
|
||||||
becomes a de-facto standard. To achieve this, non-free programs must
|
a de-facto standard. To achieve this, non-free programs must be
|
||||||
be allowed to use the library. A more frequent case is that a free
|
allowed to use the library. A more frequent case is that a free
|
||||||
library does the same job as widely used non-free libraries. In this
|
library does the same job as widely used non-free libraries. In this
|
||||||
case, there is little to gain by limiting the free library to free
|
case, there is little to gain by limiting the free library to free
|
||||||
software only, so we use the Lesser General Public License.
|
software only, so we use the Lesser General Public License.
|
||||||
@ -138,8 +136,8 @@ included without limitation in the term "modification".)
|
|||||||
"Source code" for a work means the preferred form of the work for
|
"Source code" for a work means the preferred form of the work for
|
||||||
making modifications to it. For a library, complete source code means
|
making modifications to it. For a library, complete source code means
|
||||||
all the source code for all modules it contains, plus any associated
|
all the source code for all modules it contains, plus any associated
|
||||||
interface definition files, plus the scripts used to control
|
interface definition files, plus the scripts used to control compilation
|
||||||
compilation and installation of the library.
|
and installation of the library.
|
||||||
|
|
||||||
Activities other than copying, distribution and modification are not
|
Activities other than copying, distribution and modification are not
|
||||||
covered by this License; they are outside its scope. The act of
|
covered by this License; they are outside its scope. The act of
|
||||||
@ -305,10 +303,10 @@ of these things:
|
|||||||
the user installs one, as long as the modified version is
|
the user installs one, as long as the modified version is
|
||||||
interface-compatible with the version that the work was made with.
|
interface-compatible with the version that the work was made with.
|
||||||
|
|
||||||
c) Accompany the work with a written offer, valid for at least
|
c) Accompany the work with a written offer, valid for at
|
||||||
three years, to give the same user the materials specified in
|
least three years, to give the same user the materials
|
||||||
Subsection 6a, above, for a charge no more than the cost of
|
specified in Subsection 6a, above, for a charge no more
|
||||||
performing this distribution.
|
than the cost of performing this distribution.
|
||||||
|
|
||||||
d) If distribution of the work is made by offering access to copy
|
d) If distribution of the work is made by offering access to copy
|
||||||
from a designated place, offer equivalent access to copy the above
|
from a designated place, offer equivalent access to copy the above
|
||||||
@ -386,10 +384,9 @@ all those who receive copies directly or indirectly through you, then
|
|||||||
the only way you could satisfy both it and this License would be to
|
the only way you could satisfy both it and this License would be to
|
||||||
refrain entirely from distribution of the Library.
|
refrain entirely from distribution of the Library.
|
||||||
|
|
||||||
If any portion of this section is held invalid or unenforceable under
|
If any portion of this section is held invalid or unenforceable under any
|
||||||
any particular circumstance, the balance of the section is intended to
|
particular circumstance, the balance of the section is intended to apply,
|
||||||
apply, and the section as a whole is intended to apply in other
|
and the section as a whole is intended to apply in other circumstances.
|
||||||
circumstances.
|
|
||||||
|
|
||||||
It is not the purpose of this section to induce you to infringe any
|
It is not the purpose of this section to induce you to infringe any
|
||||||
patents or other property right claims or to contest validity of any
|
patents or other property right claims or to contest validity of any
|
||||||
@ -407,11 +404,11 @@ be a consequence of the rest of this License.
|
|||||||
|
|
||||||
12. If the distribution and/or use of the Library is restricted in
|
12. If the distribution and/or use of the Library is restricted in
|
||||||
certain countries either by patents or by copyrighted interfaces, the
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
original copyright holder who places the Library under this License
|
original copyright holder who places the Library under this License may add
|
||||||
may add an explicit geographical distribution limitation excluding those
|
an explicit geographical distribution limitation excluding those countries,
|
||||||
countries, so that distribution is permitted only in or among
|
so that distribution is permitted only in or among countries not thus
|
||||||
countries not thus excluded. In such case, this License incorporates
|
excluded. In such case, this License incorporates the limitation as if
|
||||||
the limitation as if written in the body of this License.
|
written in the body of this License.
|
||||||
|
|
||||||
13. The Free Software Foundation may publish revised and/or new
|
13. The Free Software Foundation may publish revised and/or new
|
||||||
versions of the Lesser General Public License from time to time.
|
versions of the Lesser General Public License from time to time.
|
@ -1,4 +1,6 @@
|
|||||||
libqtlxqt - LXQt system integration plugin for Qt.
|
# libqtlxqt
|
||||||
|
|
||||||
|
LXQt system integration plugin for Qt.
|
||||||
|
|
||||||
With this plugin, all Qt-based programs can adopt settings of
|
With this plugin, all Qt-based programs can adopt settings of
|
||||||
LXQt, such as the icon theme.
|
LXQt, such as the icon theme.
|
@ -49,7 +49,6 @@
|
|||||||
LXQtPlatformTheme::LXQtPlatformTheme():
|
LXQtPlatformTheme::LXQtPlatformTheme():
|
||||||
settingsWatcher_(NULL)
|
settingsWatcher_(NULL)
|
||||||
{
|
{
|
||||||
// qDebug() << "LXQT Platform Theme loaded";
|
|
||||||
// When the plugin is loaded, it seems that the app is not yet running and
|
// When the plugin is loaded, it seems that the app is not yet running and
|
||||||
// QThread environment is not completely set up. So creating filesystem watcher
|
// QThread environment is not completely set up. So creating filesystem watcher
|
||||||
// does not work since it uses QSocketNotifier internally which can only be
|
// does not work since it uses QSocketNotifier internally which can only be
|
||||||
@ -106,14 +105,12 @@ void LXQtPlatformTheme::loadSettings() {
|
|||||||
if(!fontStr_.isEmpty()) {
|
if(!fontStr_.isEmpty()) {
|
||||||
if(font_.fromString(fontStr_))
|
if(font_.fromString(fontStr_))
|
||||||
QApplication::setFont(font_); // it seems that we need to do this manually.
|
QApplication::setFont(font_); // it seems that we need to do this manually.
|
||||||
// qDebug() << "font: " << font_.toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// FixedFont
|
// FixedFont
|
||||||
fixedFontStr_ = settings.value(QLatin1String("fixedFont")).toString();
|
fixedFontStr_ = settings.value(QLatin1String("fixedFont")).toString();
|
||||||
if(!fixedFontStr_.isEmpty()) {
|
if(!fixedFontStr_.isEmpty()) {
|
||||||
fixedFont_.fromString(fixedFontStr_);
|
fixedFont_.fromString(fixedFontStr_);
|
||||||
// qDebug() << "fixedFont: " << fixedFont_.toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// mouse
|
// mouse
|
||||||
@ -214,7 +211,6 @@ const QPalette *LXQtPlatformTheme::palette(Palette type) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const QFont *LXQtPlatformTheme::font(Font type) const {
|
const QFont *LXQtPlatformTheme::font(Font type) const {
|
||||||
// qDebug() << "font()" << type << SystemFont;
|
|
||||||
if(type == SystemFont && !fontStr_.isEmpty()) {
|
if(type == SystemFont && !fontStr_.isEmpty()) {
|
||||||
// NOTE: for some reason, this is not called by Qt when program startup.
|
// NOTE: for some reason, this is not called by Qt when program startup.
|
||||||
// So we do QApplication::setFont() manually.
|
// So we do QApplication::setFont() manually.
|
||||||
@ -227,7 +223,6 @@ const QFont *LXQtPlatformTheme::font(Font type) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QVariant LXQtPlatformTheme::themeHint(ThemeHint hint) const {
|
QVariant LXQtPlatformTheme::themeHint(ThemeHint hint) const {
|
||||||
// qDebug() << "themeHint" << hint;
|
|
||||||
switch (hint) {
|
switch (hint) {
|
||||||
case CursorFlashTime:
|
case CursorFlashTime:
|
||||||
return cursorFlashTime_;
|
return cursorFlashTime_;
|
||||||
@ -258,14 +253,12 @@ QVariant LXQtPlatformTheme::themeHint(ThemeHint hint) const {
|
|||||||
case ItemViewActivateItemOnSingleClick:
|
case ItemViewActivateItemOnSingleClick:
|
||||||
return QVariant(singleClickActivate_);
|
return QVariant(singleClickActivate_);
|
||||||
case SystemIconThemeName:
|
case SystemIconThemeName:
|
||||||
// qDebug() << "iconTheme" << iconTheme_;
|
|
||||||
return iconTheme_;
|
return iconTheme_;
|
||||||
case SystemIconFallbackThemeName:
|
case SystemIconFallbackThemeName:
|
||||||
return "hicolor";
|
return "hicolor";
|
||||||
case IconThemeSearchPaths:
|
case IconThemeSearchPaths:
|
||||||
return xdgIconThemePaths();
|
return xdgIconThemePaths();
|
||||||
case StyleNames:
|
case StyleNames:
|
||||||
// qDebug() << "StyleNames";
|
|
||||||
return QStringList() << style_;
|
return QStringList() << style_;
|
||||||
case WindowAutoPlacement:
|
case WindowAutoPlacement:
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user