X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtgui%2Fchatwidget.cpp;h=5a3ab40354b8145fae5b765380b9055c76a4acc8;hp=ea6adf029b59f1d927375b8404ddf2c91c7f4db4;hb=902c95728306e5ba115de84800fc8d5d239c9d62;hpb=6869909402a4dc807ee5261cc2a0999ac33053ee diff --git a/src/qtgui/chatwidget.cpp b/src/qtgui/chatwidget.cpp index ea6adf02..5a3ab403 100644 --- a/src/qtgui/chatwidget.cpp +++ b/src/qtgui/chatwidget.cpp @@ -25,6 +25,10 @@ ChatWidget::ChatWidget(QWidget *parent) : QAbstractScrollArea(parent) { + //setAutoFillBackground(false); + //QPalette palette; + //palette.setColor(backgroundRole(), QColor(0, 0, 0, 50)); + //setPalette(palette); scrollTimer = new QTimer(this); scrollTimer->setSingleShot(false); scrollTimer->setInterval(100); @@ -281,7 +285,7 @@ void ChatWidget::layout() { } int ChatWidget::yToLineIdx(qreal y) { - if(y >= ycoords[ycoords.count()-1]) return ycoords.count()-1; + if(y >= ycoords[ycoords.count()-1]) return ycoords.count()-2; if(ycoords.count() <= 1) return 0; int uidx = 0; int oidx = ycoords.count() - 1;