projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ok this is the major rework of quassel we've all been waiting for. For the actual...
[quassel.git]
/
src
/
qtgui
/
chatwidget.cpp
diff --git
a/src/qtgui/chatwidget.cpp
b/src/qtgui/chatwidget.cpp
index
ea6adf0
..
5a3ab40
100644
(file)
--- a/
src/qtgui/chatwidget.cpp
+++ b/
src/qtgui/chatwidget.cpp
@@
-25,6
+25,10
@@
ChatWidget::ChatWidget(QWidget *parent) : QAbstractScrollArea(parent) {
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);
scrollTimer = new QTimer(this);
scrollTimer->setSingleShot(false);
scrollTimer->setInterval(100);
@@
-281,7
+285,7
@@
void ChatWidget::layout() {
}
int ChatWidget::yToLineIdx(qreal y) {
}
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;
if(ycoords.count() <= 1) return 0;
int uidx = 0;
int oidx = ycoords.count() - 1;