added increased size of drag and drop regions
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user