fixed xcode warning

This commit is contained in:
John Preston 2014-11-18 16:18:42 +03:00
parent 85ca7e0f05
commit 2532245413
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ Copyright (c) 2014 John Preston, https://tdesktop.com
#include "application.h"
SysBtn::SysBtn(QWidget *parent, const style::sysButton &st, const QString &text) : Button(parent),
_st(st), a_color(_st.color->c), _text(text), _overLevel(0) {
_st(st), a_color(_st.color->c), _overLevel(0), _text(text) {
int32 w = _st.size.width() + (_text.isEmpty() ? 0 : ((_st.size.width() - _st.img.pxWidth()) / 2 + st::titleTextButton.font->m.width(_text)));
resize(w, _st.size.height());
setCursor(style::cur_default);