mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fix wrong variable name, openChannelNameDialog on ctrl+t, give focus to (#47)
new split
This commit is contained in:
parent
f2ef14422b
commit
0d27f16c4a
|
@ -224,7 +224,7 @@ boost::property_tree::ptree ChatWidget::save()
|
||||||
void ChatWidget::doAddSplit()
|
void ChatWidget::doAddSplit()
|
||||||
{
|
{
|
||||||
NotebookPage *page = static_cast<NotebookPage *>(this->parentWidget());
|
NotebookPage *page = static_cast<NotebookPage *>(this->parentWidget());
|
||||||
page->addChat();
|
page->addChat(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatWidget::doCloseSplit()
|
void ChatWidget::doCloseSplit()
|
||||||
|
|
|
@ -103,6 +103,7 @@ void NotebookPage::addToLayout(ChatWidget *widget,
|
||||||
std::pair<int, int> position = std::pair<int, int>(-1, -1))
|
std::pair<int, int> position = std::pair<int, int>(-1, -1))
|
||||||
{
|
{
|
||||||
_chatWidgets.push_back(widget);
|
_chatWidgets.push_back(widget);
|
||||||
|
widget->giveFocus();
|
||||||
|
|
||||||
// add vbox at the end
|
// add vbox at the end
|
||||||
if (position.first < 0 || position.first >= _hbox.count()) {
|
if (position.first < 0 || position.first >= _hbox.count()) {
|
||||||
|
|
|
@ -13,11 +13,10 @@ namespace widgets {
|
||||||
|
|
||||||
ScrollBar::ScrollBar(ChatWidgetView *parent)
|
ScrollBar::ScrollBar(ChatWidgetView *parent)
|
||||||
: BaseWidget(parent)
|
: BaseWidget(parent)
|
||||||
, _currentValueAnimation(this, "currentValue")
|
, _currentValueAnimation(this, "_currentValue")
|
||||||
, _highlights(nullptr)
|
, _highlights(nullptr)
|
||||||
{
|
{
|
||||||
resize(16, 100);
|
resize(16, 100);
|
||||||
|
|
||||||
_currentValueAnimation.setDuration(250);
|
_currentValueAnimation.setDuration(250);
|
||||||
_currentValueAnimation.setEasingCurve(QEasingCurve(QEasingCurve::OutCubic));
|
_currentValueAnimation.setEasingCurve(QEasingCurve(QEasingCurve::OutCubic));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue