1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

docs(chatlog): Change comment style

This commit is contained in:
Diadlo 2016-07-27 01:19:23 +03:00
parent 29443040fb
commit 394c4bcc99
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
6 changed files with 19 additions and 2 deletions

View File

@ -24,6 +24,14 @@
#include <QPainter>
#include <QDebug>
/**
@enum ChatLineContentProxy::ChatLineContentProxyType
@brief Type tag to avoid dynamic_cast of contained QWidget*
@value GenericType
@value FileTransferWidgetType = 0
*/
ChatLineContentProxy::ChatLineContentProxy(QWidget* widget, ChatLineContentProxyType type, int minWidth, float widthInPercent)
: widthPercent(widthInPercent)
, widthMin(minWidth)

View File

@ -28,7 +28,6 @@ class FileTransferWidget;
class ChatLineContentProxy : public ChatLineContent
{
public:
// Type tag to avoid dynamic_cast of contained QWidget*
enum ChatLineContentProxyType
{
GenericType,

View File

@ -31,6 +31,11 @@
#include <QMouseEvent>
#include <QShortcut>
/**
@var ChatLog::repNameAfter
@brief repetition interval sender name (sec)
*/
template<class T>
T clamp(T x, T min, T max)
{

View File

@ -62,7 +62,6 @@ public:
ChatLine::Ptr getTypingNotification() const;
QVector<ChatLine::Ptr> getLines();
ChatLine::Ptr getLatestLine() const;
// repetition interval sender name (sec)
const uint repNameAfter = 5*60;
signals:

View File

@ -43,6 +43,9 @@ void DocumentCache::push(QTextDocument *doc)
}
}
/**
@brief Returns the singleton instance.
*/
DocumentCache &DocumentCache::getInstance()
{
static DocumentCache instance;

View File

@ -35,6 +35,9 @@ QPixmap PixmapCache::get(const QString &filename, QSize size)
return itr.value().pixmap(size);
}
/**
@brief Returns the singleton instance.
*/
PixmapCache &PixmapCache::getInstance()
{
static PixmapCache instance;