mirror-chatterino2/chatwidgetview.cpp

15 lines
263 B
C++
Raw Normal View History

2017-01-01 02:30:42 +01:00
#include "chatwidgetview.h"
ChatWidgetView::ChatWidgetView()
2017-01-03 21:19:33 +01:00
: QWidget(),
scrollbar(this)
2017-01-01 02:30:42 +01:00
{
}
2017-01-03 21:19:33 +01:00
void ChatWidgetView::resizeEvent(QResizeEvent *)
{
scrollbar.resize(scrollbar.width(), height());
scrollbar.move(width() - scrollbar.width(), 0);
}