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>
|
#include <QStyle>
|
||||||
|
|
||||||
GenericChatroomWidget::GenericChatroomWidget(QWidget *parent)
|
GenericChatroomWidget::GenericChatroomWidget(QWidget *parent)
|
||||||
: QWidget(parent)
|
: QFrame(parent)
|
||||||
{
|
{
|
||||||
setFixedHeight(55);
|
setFixedHeight(55);
|
||||||
setAutoFillBackground(true);
|
|
||||||
|
|
||||||
setLayout(&layout);
|
setLayout(&layout);
|
||||||
layout.setSpacing(0);
|
layout.setSpacing(0);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#ifndef GENERICCHATROOMWIDGET_H
|
#ifndef GENERICCHATROOMWIDGET_H
|
||||||
#define GENERICCHATROOMWIDGET_H
|
#define GENERICCHATROOMWIDGET_H
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QFrame>
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
@ -29,7 +29,7 @@ namespace Ui {
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
class GenericChatroomWidget : public QWidget
|
class GenericChatroomWidget : public QFrame
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user