linting
This commit is contained in:
parent
ee893c5adf
commit
8fa01e2cd6
@ -38,15 +38,11 @@ struct DescInfo
|
||||
class RoomInfoListItem : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QColor highlightedBackgroundColor
|
||||
READ highlightedBackgroundColor
|
||||
WRITE setHighlightedBackgroundColor)
|
||||
Q_PROPERTY(QColor hoverBackgroundColor
|
||||
READ hoverBackgroundColor
|
||||
WRITE setHoverBackgroundColor)
|
||||
Q_PROPERTY(QColor backgroundColor
|
||||
READ backgroundColor
|
||||
WRITE setBackgroundColor)
|
||||
Q_PROPERTY(QColor highlightedBackgroundColor READ highlightedBackgroundColor WRITE
|
||||
setHighlightedBackgroundColor)
|
||||
Q_PROPERTY(
|
||||
QColor hoverBackgroundColor READ hoverBackgroundColor WRITE setHoverBackgroundColor)
|
||||
Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
|
||||
|
||||
public:
|
||||
RoomInfoListItem(QSharedPointer<RoomSettings> settings,
|
||||
@ -71,7 +67,10 @@ public:
|
||||
inline QColor hoverBackgroundColor() const { return hoverBackgroundColor_; }
|
||||
inline QColor backgroundColor() const { return backgroundColor_; }
|
||||
|
||||
inline void setHighlightedBackgroundColor(QColor &color) { highlightedBackgroundColor_ = color; }
|
||||
inline void setHighlightedBackgroundColor(QColor &color)
|
||||
{
|
||||
highlightedBackgroundColor_ = color;
|
||||
}
|
||||
inline void setHoverBackgroundColor(QColor &color) { hoverBackgroundColor_ = color; }
|
||||
inline void setBackgroundColor(QColor &color) { backgroundColor_ = color; }
|
||||
|
||||
|
@ -19,9 +19,9 @@
|
||||
|
||||
#include <QHBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QPainter>
|
||||
#include <QStyle>
|
||||
#include <QStyleOption>
|
||||
#include <QPainter>
|
||||
|
||||
#include "Emote.h"
|
||||
#include "Image.h"
|
||||
|
@ -64,7 +64,8 @@ struct PendingMessage
|
||||
, filename(filename)
|
||||
, event_id(event_id)
|
||||
, widget(widget)
|
||||
{}
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
// In which place new TimelineItems should be inserted.
|
||||
|
@ -34,12 +34,12 @@ EmojiPanel::EmojiPanel(QWidget *parent)
|
||||
{
|
||||
// setStyleSheet(
|
||||
// "QWidget {background: #fff; color: #e8e8e8; border: none;}"
|
||||
// "QScrollBar:vertical { background-color: #fff; width: 8px; margin: 0px 2px 0 2px; }"
|
||||
// "QScrollBar:vertical { background-color: #fff; width: 8px; margin: 0px 2px 0
|
||||
// 2px; }"
|
||||
// "QScrollBar::handle:vertical { background-color: #d6dde3; min-height: 20px; }"
|
||||
// "QScrollBar::add-line:vertical { border: none; background: none; }"
|
||||
// "QScrollBar::sub-line:vertical { border: none; background: none; }");
|
||||
setStyleSheet(
|
||||
"QWidget {border: none;}"
|
||||
setStyleSheet("QWidget {border: none;}"
|
||||
"QScrollBar:vertical { width: 8px; margin: 0px 2px 0 2px; }"
|
||||
"QScrollBar::handle:vertical { min-height: 20px; }"
|
||||
"QScrollBar::add-line:vertical { border: none; background: none; }"
|
||||
|
@ -66,7 +66,6 @@ TimelineItem::init()
|
||||
|
||||
headerLayout_->setMargin(0);
|
||||
headerLayout_->setSpacing(conf::timeline::headerSpacing);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -17,12 +17,12 @@
|
||||
|
||||
#include <QApplication>
|
||||
#include <QDesktopWidget>
|
||||
#include <QFile>
|
||||
#include <QFontDatabase>
|
||||
#include <QLibraryInfo>
|
||||
#include <QNetworkProxy>
|
||||
#include <QSettings>
|
||||
#include <QTranslator>
|
||||
#include <QFile>
|
||||
|
||||
#include "MainWindow.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user