1
0
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:
krepa098 2014-10-01 18:53:31 +02:00
parent f99825580a
commit 226c0f2cf1
2 changed files with 3 additions and 4 deletions

View File

@ -22,10 +22,9 @@
#include <QStyle>
GenericChatroomWidget::GenericChatroomWidget(QWidget *parent)
: QWidget(parent)
: QFrame(parent)
{
setFixedHeight(55);
setAutoFillBackground(true);
setLayout(&layout);
layout.setSpacing(0);

View File

@ -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: