fixed text copying in the emote popup

This commit is contained in:
fourtf 2018-05-23 13:54:42 +02:00
parent 935cd1bab0
commit 0475ea0b6f
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,7 @@
#include "widgets/notebook.hpp" #include "widgets/notebook.hpp"
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QShortcut>
#include <QTabWidget> #include <QTabWidget>
using namespace chatterino::providers::twitch; using namespace chatterino::providers::twitch;

View file

@ -126,7 +126,11 @@ ChannelView::ChannelView(BaseWidget *parent)
this->scrollBar.setGeometry(this->width() - this->scrollBar.width(), 0, this->scrollBar.setGeometry(this->width() - this->scrollBar.width(), 0,
this->scrollBar.width(), this->height()); this->scrollBar.width(), this->height());
}); });
} // namespace widgets
QShortcut *shortcut = new QShortcut(QKeySequence("Ctrl+C"), this);
QObject::connect(shortcut, &QShortcut::activated,
[this] { QGuiApplication::clipboard()->setText(this->getSelectedText()); });
}
ChannelView::~ChannelView() ChannelView::~ChannelView()
{ {