added increased size of drag and drop regions

This commit is contained in:
fourtf 2018-08-07 09:45:10 +02:00
parent 5df231f072
commit e1b8faacc9
2 changed files with 5 additions and 6 deletions

View file

@ -760,7 +760,7 @@ void TwitchMessageBuilder::appendTwitchBadges()
case 1: { case 1: {
this->emplace<ImageElement>( this->emplace<ImageElement>(
Image::fromNonOwningPixmap( Image::fromNonOwningPixmap(
&app->resources->twitch.verified), &app->resources->twitch.verified, 0.25),
MessageElementFlag::BadgeVanity) MessageElementFlag::BadgeVanity)
->setTooltip("Twitch Verified"); ->setTooltip("Twitch Verified");
} break; } break;

View file

@ -20,9 +20,8 @@
#include <QPainter> #include <QPainter>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QWidget> #include <QWidget>
#include <boost/foreach.hpp>
#include <algorithm> #include <algorithm>
#include <boost/foreach.hpp>
namespace chatterino { namespace chatterino {
@ -328,10 +327,10 @@ void SplitContainer::layout()
Node *node = this->baseNode_.findNodeContainingSplit(split); Node *node = this->baseNode_.findNodeContainingSplit(split);
_dropRects.push_back( _dropRects.push_back(
DropRect(QRect(g.left(), g.top(), g.width() / 4, g.height()), DropRect(QRect(g.left(), g.top(), g.width() / 3, g.height()),
Position(node, Direction::Left))); Position(node, Direction::Left)));
_dropRects.push_back(DropRect(QRect(g.left() + g.width() / 4 * 3, _dropRects.push_back(DropRect(QRect(g.left() + g.width() / 3 * 2,
g.top(), g.width() / 4, g.height()), g.top(), g.width() / 3, g.height()),
Position(node, Direction::Right))); Position(node, Direction::Right)));
_dropRects.push_back( _dropRects.push_back(