roomlist: Put the message timestamp on the top
This commit is contained in:
parent
4192a99927
commit
7253dc2c54
4 changed files with 63 additions and 49 deletions
|
|
@ -56,9 +56,10 @@ static constexpr int cornerRadius = 3;
|
|||
// RoomList specific.
|
||||
namespace roomlist {
|
||||
namespace fonts {
|
||||
static constexpr int heading = 14;
|
||||
static constexpr int badge = 10;
|
||||
static constexpr int bubble = 20;
|
||||
static constexpr int heading = 14;
|
||||
static constexpr int timestamp = heading - 1;
|
||||
static constexpr int badge = 10;
|
||||
static constexpr int bubble = 20;
|
||||
} // namespace fonts
|
||||
} // namespace roomlist
|
||||
|
||||
|
|
@ -84,7 +85,7 @@ static constexpr int headerLeftMargin = 15;
|
|||
|
||||
namespace fonts {
|
||||
static constexpr int timestamp = 13;
|
||||
static constexpr int dateSeparator = conf::fontSize - 2;
|
||||
static constexpr int dateSeparator = conf::fontSize;
|
||||
} // namespace fonts
|
||||
} // namespace timeline
|
||||
|
||||
|
|
|
|||
|
|
@ -75,10 +75,10 @@ public:
|
|||
update();
|
||||
}
|
||||
|
||||
QString roomId();
|
||||
bool isPressed() const { return isPressed_; };
|
||||
QString roomId() { return roomId_; }
|
||||
bool isPressed() const { return isPressed_; }
|
||||
QSharedPointer<RoomState> state() const { return state_; }
|
||||
int unreadMessageCount() const { return unreadMsgCount_; };
|
||||
int unreadMessageCount() const { return unreadMsgCount_; }
|
||||
|
||||
void setAvatar(const QImage &avatar_image);
|
||||
void setDescriptionMessage(const DescInfo &info);
|
||||
|
|
@ -184,10 +184,12 @@ private:
|
|||
|
||||
QRectF acceptBtnRegion_;
|
||||
QRectF declineBtnRegion_;
|
||||
};
|
||||
|
||||
inline QString
|
||||
RoomInfoListItem::roomId()
|
||||
{
|
||||
return roomId_;
|
||||
}
|
||||
// Fonts
|
||||
QFont bubbleFont_;
|
||||
QFont font_;
|
||||
QFont headingFont_;
|
||||
QFont timestampFont_;
|
||||
QFont usernameFont_;
|
||||
QFont unreadCountFont_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue