From 878daf6eee4266f5feb2e15c5a71aff099353ec5 Mon Sep 17 00:00:00 2001 From: fourtf Date: Thu, 9 Aug 2018 16:44:04 +0200 Subject: [PATCH] added link to license --- resources/licenses/emoji-data-source.txt | 21 +++++++++++++++++++++ src/widgets/helper/Button.cpp | 2 ++ src/widgets/settingspages/AboutPage.cpp | 3 ++- src/widgets/splits/SplitContainer.cpp | 2 +- 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 resources/licenses/emoji-data-source.txt diff --git a/resources/licenses/emoji-data-source.txt b/resources/licenses/emoji-data-source.txt new file mode 100644 index 000000000..85ddb3c0f --- /dev/null +++ b/resources/licenses/emoji-data-source.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2013 Cal Henderson + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/widgets/helper/Button.cpp b/src/widgets/helper/Button.cpp index a3ee7df5b..2e035c02c 100644 --- a/src/widgets/helper/Button.cpp +++ b/src/widgets/helper/Button.cpp @@ -197,6 +197,8 @@ void Button::mousePressEvent(QMouseEvent *event) if (this->menu_ && !this->menuVisible_) { QTimer::singleShot(80, this, [this] { this->showMenu(); }); + this->mouseDown_ = false; + this->mouseOver_ = false; } } diff --git a/src/widgets/settingspages/AboutPage.cpp b/src/widgets/settingspages/AboutPage.cpp index 710e5e915..758467391 100644 --- a/src/widgets/settingspages/AboutPage.cpp +++ b/src/widgets/settingspages/AboutPage.cpp @@ -111,7 +111,8 @@ AboutPage::AboutPage() l.emplace("Apple emojis provided by Apple")->setOpenExternalLinks(true); l.emplace("Google emojis provided by Google")->setOpenExternalLinks(true); l.emplace("Messenger emojis provided by Facebook")->setOpenExternalLinks(true); - l.emplace("Emoji datasource provided by Cal Henderson")->setOpenExternalLinks(true); + l.emplace("Emoji datasource provided by Cal Henderson" + "(show license)")->setOpenExternalLinks(true); // clang-format on } diff --git a/src/widgets/splits/SplitContainer.cpp b/src/widgets/splits/SplitContainer.cpp index c7ae6c798..ecbadc21d 100644 --- a/src/widgets/splits/SplitContainer.cpp +++ b/src/widgets/splits/SplitContainer.cpp @@ -311,7 +311,7 @@ void SplitContainer::focusSplitRecursive(Node *node, Direction direction) void SplitContainer::layout() { - this->baseNode_.geometry_ = this->rect().adjusted(0, 0, -1, -1); + this->baseNode_.geometry_ = this->rect().adjusted(-1, -1, 0, 0); std::vector _dropRects; std::vector _resizeRects;