fix wrong variable name, openChannelNameDialog on ctrl+t, give focus to (#47)

new split
This commit is contained in:
hemirt 2017-06-29 14:13:00 +02:00 committed by pajlada
parent f2ef14422b
commit 0d27f16c4a
3 changed files with 3 additions and 3 deletions

View file

@ -224,7 +224,7 @@ boost::property_tree::ptree ChatWidget::save()
void ChatWidget::doAddSplit()
{
NotebookPage *page = static_cast<NotebookPage *>(this->parentWidget());
page->addChat();
page->addChat(true);
}
void ChatWidget::doCloseSplit()

View file

@ -103,6 +103,7 @@ void NotebookPage::addToLayout(ChatWidget *widget,
std::pair<int, int> position = std::pair<int, int>(-1, -1))
{
_chatWidgets.push_back(widget);
widget->giveFocus();
// add vbox at the end
if (position.first < 0 || position.first >= _hbox.count()) {

View file

@ -13,11 +13,10 @@ namespace widgets {
ScrollBar::ScrollBar(ChatWidgetView *parent)
: BaseWidget(parent)
, _currentValueAnimation(this, "currentValue")
, _currentValueAnimation(this, "_currentValue")
, _highlights(nullptr)
{
resize(16, 100);
_currentValueAnimation.setDuration(250);
_currentValueAnimation.setEasingCurve(QEasingCurve(QEasingCurve::OutCubic));