Remove extra clang-format options

This commit is contained in:
Konstantinos Sideris 2017-10-01 12:11:33 +03:00
parent 18e9fd6ada
commit 0c0ac68bc2
30 changed files with 61 additions and 120 deletions

View file

@ -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() {}
};

View file

@ -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_;
};

View file

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

View file

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

View file

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

View file

@ -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); }");
};