fixed text copying in the emote popup
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user