Remove extra clang-format options
This commit is contained in:
parent
18e9fd6ada
commit
0c0ac68bc2
30 changed files with 61 additions and 120 deletions
|
|
@ -37,25 +37,15 @@ private:
|
|||
class Deserializable
|
||||
{
|
||||
public:
|
||||
virtual void deserialize(const QJsonValue &)
|
||||
{
|
||||
}
|
||||
virtual void deserialize(const QJsonObject &)
|
||||
{
|
||||
}
|
||||
virtual void deserialize(const QJsonDocument &)
|
||||
{
|
||||
}
|
||||
virtual ~Deserializable()
|
||||
{
|
||||
}
|
||||
virtual void deserialize(const QJsonValue &) {}
|
||||
virtual void deserialize(const QJsonObject &) {}
|
||||
virtual void deserialize(const QJsonDocument &) {}
|
||||
virtual ~Deserializable() {}
|
||||
};
|
||||
|
||||
class Serializable
|
||||
{
|
||||
public:
|
||||
virtual QJsonObject serialize() const = 0;
|
||||
virtual ~Serializable()
|
||||
{
|
||||
}
|
||||
virtual ~Serializable() {}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -41,7 +41,8 @@ namespace events = matrix::events;
|
|||
class RoomState
|
||||
{
|
||||
public:
|
||||
// Calculate room data that are not immediatly accessible. Like room name and avatar.
|
||||
// Calculate room data that are not immediatly accessible. Like room name and
|
||||
// avatar.
|
||||
//
|
||||
// e.g If the room is 1-on-1 name and avatar should be extracted from a user.
|
||||
void resolveName();
|
||||
|
|
@ -76,8 +77,8 @@ private:
|
|||
QUrl avatar_;
|
||||
QString name_;
|
||||
|
||||
// It defines the user whose avatar is used for the room. If the room has an avatar
|
||||
// event this should be empty.
|
||||
// It defines the user whose avatar is used for the room. If the room has an
|
||||
// avatar event this should be empty.
|
||||
QString userAvatar_;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,8 @@ private:
|
|||
void updateLastSender(const QString &user_id, TimelineDirection direction);
|
||||
void notifyForLastEvent();
|
||||
|
||||
// Used to determine whether or not we should prefix a message with the sender's name.
|
||||
// Used to determine whether or not we should prefix a message with the
|
||||
// sender's name.
|
||||
bool isSenderRendered(const QString &user_id, TimelineDirection direction);
|
||||
|
||||
bool isPendingMessage(const QString &eventid,
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@ namespace matrix
|
|||
namespace events
|
||||
{
|
||||
/*
|
||||
* This is the first event in a room and cannot be changed. It acts as the root of all other events.
|
||||
* This is the first event in a room and cannot be changed. It acts as the root
|
||||
* of all other events.
|
||||
*/
|
||||
|
||||
class CreateEventContent
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@ namespace matrix
|
|||
namespace events
|
||||
{
|
||||
/*
|
||||
* A topic is a short message detailing what is currently being discussed in the room.
|
||||
* A topic is a short message detailing what is currently being discussed in the
|
||||
* room.
|
||||
*/
|
||||
|
||||
class TopicEventContent
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ public:
|
|||
setFont(font);
|
||||
setStyleSheet(
|
||||
"QMenu { color: black; background-color: white; margin: 0px;}"
|
||||
"QMenu::item { color: black; padding: 7px 20px; border: 1px solid transparent; "
|
||||
"margin: "
|
||||
"2px 0px; }"
|
||||
"QMenu::item {"
|
||||
"color: black; padding: 7px 20px; border: 1px solid transparent;"
|
||||
"margin: 2px 0px; }"
|
||||
"QMenu::item:selected { color: black; background: rgba(180, 180, 180, 100); }");
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue