forked from blue/squawk
better way to solve yesterday font problem, small visual avatar rendering fix
This commit is contained in:
parent
15fb4bbd62
commit
d4bf7e599a
9 changed files with 62 additions and 56 deletions
|
@ -93,9 +93,6 @@ protected:
|
|||
|
||||
protected slots:
|
||||
void onButtonPushed() const;
|
||||
|
||||
private:
|
||||
static void initializeFonts();
|
||||
|
||||
private:
|
||||
class FeedButton : public QPushButton {
|
||||
|
@ -103,13 +100,12 @@ private:
|
|||
QString messageId;
|
||||
};
|
||||
|
||||
static bool fontsInitialized;
|
||||
static QFont bodyFont;
|
||||
static QFont nickFont;
|
||||
static QFont dateFont;
|
||||
const QFont& bodyFont;
|
||||
const QFont& nickFont;
|
||||
const QFont& dateFont;
|
||||
const QFontMetrics& nickMetrics;
|
||||
const QFontMetrics& dateMetrics;
|
||||
QTextDocument* bodyRenderer;
|
||||
static QFontMetrics nickMetrics;
|
||||
static QFontMetrics dateMetrics;
|
||||
|
||||
int buttonHeight;
|
||||
int buttonWidth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue