mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
GenericChatroomWidget: use QFrame instead of QWidget as base class
(fixes invisible background)
This commit is contained in:
parent
f99825580a
commit
226c0f2cf1
|
@ -22,10 +22,9 @@
|
|||
#include <QStyle>
|
||||
|
||||
GenericChatroomWidget::GenericChatroomWidget(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
: QFrame(parent)
|
||||
{
|
||||
setFixedHeight(55);
|
||||
setAutoFillBackground(true);
|
||||
|
||||
setLayout(&layout);
|
||||
layout.setSpacing(0);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#ifndef GENERICCHATROOMWIDGET_H
|
||||
#define GENERICCHATROOMWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QFrame>
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
|
@ -29,7 +29,7 @@ namespace Ui {
|
|||
class MainWindow;
|
||||
}
|
||||
|
||||
class GenericChatroomWidget : public QWidget
|
||||
class GenericChatroomWidget : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue
Block a user